I am tasked with creating an uploader for a site that can handle very large files to avoid the clients having to use ftp as the means to send. By very large I me开发者_JAVA百科an upwards to 2 gigs in size. I have researched a few options and tested a couple implementations, one of them is:
http://www.easyflashuploader.com/en/efu-audio-uploader-demo#start
Only problem is this one does no file chunking ( that I know of ) so it requires me setting post_max_size and upload_max_filesize to ridiculous numbers to compensate. Is there a limit to what you can set this up to? Big reasons against doing so?
Thanks in advance.
PHP's pretty crappy when it comes to large file uploads, particularly because you have to a memory limit higher than the size of the file. As well, Apache on 32bit systems tends to have a 2gig file limit itself, so even if PHP could handle the upload, Apache will choke.
HTTP is not designed for sending HUGE amounts in a single request. And some servers/clients will choke on it. On apache i think the upper limit is 2GB. And if it messes up half way through, then you get to start over. FTP/SFTP/SCP would be a better tool right tool for the job.
精彩评论