2016-09-15 45 views
0

尝试从服务器下载大于1024MB的文件时使用PHP“return response() - > download(...);”它不下载超过1024MB。Laravel Forge下载限制(1024MB)

从public_html而不是通过PHP下载时,可以下载较大的文件。

Nginix错误:

2016/09/15 13:23:58 [error] 5801#5801: *198201 readv() failed (104: Connection reset by peer) while reading upstream, client: xx.xx.xx.xx, server: xxxxxx.com, request: "GET /test HTTP/2.0", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "xxxxxx.com" 

使用:Laravel伪造,Laravel 5.1,Nginx的,PHP 7

+1

[在PHP中可靠地下载大文件]可能的副本(http://stackoverflow.com/questions/597159/downloading-large-files-reliably-in-php) – vitr

回答

0

在Nginx的fastcgi_max_temp_file_size增加解决了这个问题。