开发者

upload large files [duplicate]

开发者 https://www.devze.com 2023-01-08 23:39 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Large .PDF Files Not Uploading To MySQL Database as Medium BLOB Via PHP, Files under 2MB Work Fine
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Large .PDF Files Not Uploading To MySQL Database as Medium BLOB Via PHP, Files under 2MB Work Fine

Running Unix and php5.

I have an upload form that allows people to 开发者_C百科upload any file format at any size. As of now when you try to upload it fails most of the time when I try to upload a couple mb file. However if I upload a small text file it is fine. Also I have read about issues of timing out with large files. Is there something I can do server side or preferably in my php code to enable someone to upload really large files without it timing out? Is the browser limit 500MB?


There is a server limit in php.ini here

change the size to allow larger files, default limit is 2 MB.

There isn't a browser limit afaik, but in general uploading large files from the browser just ends up being trouble. Perhaps a an anonymous FTP (with hidden list) would work?


@keith you can try out uploadify plugin you can download from here http://www.uploadify.com/ and then you can set php_values like this php_value upload_max_filesize 100M php_value post_max_size 100M php_value max_execution_time 1000 php_value max_input_time 1000 in .htaccess

0

精彩评论

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