![](/img/trans.png)
[英]I am trying to download multiple image as a zip file but getting error using laravel 7
[英]I am trying to download file through my application but am getting this error
這是錯誤
Symfony\\Component\\HttpFoundation\\File\\Exception\\FileNotFoundException 文件“http://127.0.0.1:5600/public/postVideos”不存在
這是我的控制器
function getFile($post){
return response()->download(asset('public/postVideos'));
// return Storage::download('file.jpg', $post);
}
Tyr 使用這個:
$my_file = my_file_get_contents("http://127.0.0.1/public/postVideos/file.jpg"); var_dump($my_file);
請記住對我的答案投票。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.