繁体   English   中英

我正在尝试通过我的应用程序下载文件,但出现此错误

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM