PHP upload drops with big files (w/o error)

风流意气都作罢 提交于 2019-12-24 17:14:16

问题


I'm using Xampp (on win server 2003) and I've granted both PHP and Apache for uploads with 6GB limit and no time limit for waiting for system processes. When I'm trying to post a form with uploaded file that is above ~1.8GB, it waits till 100% is uploaded and then refreshes the form with blank fields. No error messages, no routing to form's target page - same page from scratch.

Is there any hidden limitation or file system limitation that does it? If so, could you please suggest better (free) upload way for PHP?

Thank you in advance, Mark.

Edit: The limit is on 2GB not 1.8GB


回答1:


For uploading gigabytes, consider writing a web server module. It seems the common sense way to go... And make everything 64bit, just to be sure.

I never even imagined that PHP could take such large of uploads. I'd never rely on it to handle such stuff. And don't know if PHP can handle the GBs sizes properly... with it 64bit-less support (it uses 32bit) for integers...

I'm just guessing here. I would write a server module for such tasks that would handle the uploads exactly as I wanted them.



来源:https://stackoverflow.com/questions/13109296/php-upload-drops-with-big-files-w-o-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!