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

2019-08-03 17:01发布

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条回答
兄弟一词,经得起流年.
2楼-- · 2019-08-03 17:46

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.

查看更多
登录 后发表回答