Php – Uploading files larger than ~4MB results in “The connection was reset” error

apache-2.2PHPupload

On two of our servers we have an Ubuntu LAMP setup with PHP code designed to allow large image and audio uploads. One of our clients is having an issue where they are unable to upload any files larger than ~4MB from any computer in their office. They get a "The connection was reset" this error in FireFox and in chrome they get "Error 101 (net::ERR_CONNECTION_RESET): Unknown error." In chrome I can watch the upload percentage and see the upload fail around the time ~4MB is reached (53%) on an 7.79MB file.

It's not a speed issue as I've successfully uploaded files from slower networks.

Apache is returning no errors in the logs, and is recording the start of the post in the access log.

The PHP.ini is set to allow files up to 500MB and we have other clients doing this with no problems. I've upped the script timeouts of PHP as well.

I've tested uploading from a number of other locations to the servers with no errors; and I've also tested uploading from the clients location to other services, also with no errors.

I'm really at a loss i can't tell if it's a server error a client and I'm hoping someone might know of something I can use to test or perhapses possibly a setting I might have missed.

Best Answer

Is there a Firewall/IPS in between? We had this exact issue when a certain part of a file popped a false positive on our IPS, causing all sorts of drops and hangs with website access.