开发者

File downloads incomplete over slow connection

I have a 15MB file on a website (Apache webserver) that downloads fine on reasonable speed connections, but is almost always incomplete on slower connections (28KBytes/sec, for example). The size开发者_Go百科 of the incomplete file is random, from 2 to 13 MB. I have verified the behavior in both Safari and Firefox, on a connection with negligible latency. Neither browser indicates to the user that the file is incomplete, but the size is smaller than 15MB. I have tried downloading via a direct link and via a PHP download script with the proper headers: same results.

Has anyone else experienced this kind of issue?


If you use your PHP script for sending the file you will run into PHPs script limit on large downloads. See php.ini for max_execution_time.

So you don't want to read your file with PHP and then echo it to the browser.

Instead you like to redirect the browser to the file.


safe_mode = off
max_input_time = 9000
memory_limit = 1073741824
post_max_size = 1073741824
file_uploads = On
upload_max_filesize = 1073741824
max_file_uploads = 100
allow_url_fopen = On
default_socket_timeout = 60
session.gc_maxlifetime = 1800
session.cache_expire = 180
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜