Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

File Upload Large Files PHP/AJAX [closed]

Im trying to find some software to help me upload really large files (>200mb). I only want to upload a single file, no multi-options. Also i would like a simple progress bar if possible.

I have come across http://pixeline.be/experiments/jqUploader/ which is literally what i need but it has a limit of 100mb per file, because it uses flash.

Does anyone know of something else thats similar to this, but can handle larger files?

thx

like image 841
Parampal Pooni Avatar asked Oct 14 '22 01:10

Parampal Pooni


2 Answers

You can try using HTML5 and AJAX to handle large file uploads. In a combination with PHP streams you'll get very low memory usage. Here a link with more details:

http://www.webiny.com/blog/2012/05/07/webiny-file-upload-with-html5-and-ajax-using-php-streams/

like image 71
SlasherZ Avatar answered Oct 31 '22 11:10

SlasherZ


Another popular solution is http://www.swfupload.org/, but I guess it may suffer from the 100MB limit.

Regarding the whole issue of large file sizes, from my research it seems that in order to upload large files there is no other option than to increase the values for upload_max_filesize, post_max_size and max_execution time. I just wonder what the security implications are of having post_max_size set to, say, 500M? Its not the issue of bandwidth that concerns me - it is the possible DoS attacks that might arise from allowing attackers to send random 500M POST requests to the server. The best workaround I can think for this issue is to send uploads to a different server.

There is a good discussion of the whole issue here:

http://aaronwinborn.com/blogs/aaron/how-handle-large-file-uploads

If any Apache hackers out there can shed any light on the security implications of having a really large value for post_max_size that would be great.

like image 33
JamesG Avatar answered Oct 31 '22 10:10

JamesG