简体   繁体   English

我尝试使用 Laravel Storage 下载文件,但浏览器出错

[英]I have tried download file using Laravel Storage but i got error from browser

I have to download file via browser so i use laravel storage but i got some error.我必须通过浏览器下载文件,所以我使用 Laravel 存储,但出现了一些错误。 Firefox return me this error. Firefox 返回此错误。 How can i fix that?我该如何解决?

This is my request method这是我的请求方法

return Storage::disk('sftp')->download('some_file.png');

by the way i'm sure this file exists in the server and this is my error via firefox browser顺便说一句,我确定该文件存在于服务器中,这是我通过 Firefox 浏览器的错误

/tmp/mozilla_umut0/TcGfuMpx.png.part could not be saved, because the source file could not be read. /tmp/mozilla_umut0/TcGfuMpx.png.part 无法保存,因为无法读取源文件。 Try again later, or contact the server administrator.稍后再试,或联系服务器管理员。

It seems like the problem is not about laravel or php.问题似乎与 laravel 或 php 无关。 The error is coming from the browser as you mentioned.正如您提到的,错误来自浏览器。 Try to use another browser to see if the error still occurs.尝试使用其他浏览器查看错误是否仍然存在。

With a quick look i found this .快速浏览一下,我发现了这个

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我试图运行一个现有的 laravel 项目。 但是在作曲家更新期间,我收到了这个错误: - I have tried to run an existing laravel project. But during composer update I got this error: 我尝试在 laravel 上使用 postgresql 但找不到驱动程序(SQL:select * 来自“用户”,其中“id”= 4 限制 1) - I tried using postgresql on laravel but got could not find driver (SQL: select * from “users” where “id” = 4 limit 1) 尝试从服务器获取数据时出错 - I got error when I tried to get data from server 当我尝试使用Facebook ID登录网站时出现错误 - Got an error when i tried to login a website using facebook id 我尝试使用PHP代码调用发布请求,但出现401未经授权错误。 - I tried to call a post request using PHP code, but I got 401 Unauthorized error. 从 Laravel Voyager 存储下载 PDF 文件 - Download a PDF file from Laravel Voyager storage 从 Laravel 中的存储返回文件下载 - Return file download from storage in Laravel 宅基地laravel 5:链接从存储下载文件 - homestead laravel 5 : link Download file from storage 当我尝试将图像上传到数据库时出现此错误 - When I tried upload image to database I got this error 我尝试在本地实现“srmklive/paypal”:“~1.0”到我的 Laravel 项目中,在测试实现时,出现以下错误 - i tried implementing "srmklive/paypal": "~1.0", into my laravel project locally, while testing the implementation, i got an error below
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM