Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Because I'm stumped...

The client needs to be able to upload large images to a library but the upload fails after 5-6MB (over my poor connection). It seems to be timing out as the filesize at fail isn't consistent.

The setup is a form which is accepted by PHP. I've googled and played with php.ini and everything is set for big uploads and long timeouts. Platform is a dedicated windows server at GoDaddy.

What's going wrong?

share|improve this question

Ensure these two settings in PHP are set:

  • upload_max_filesize - should be a little larger then the biggest file you expect
  • post_max_size - this needs to be larger then upload_max_filesize
share|improve this answer
Been there, done that. They're both set to 80MB so I don't think that's the problem. Also, if I was running up against an upload limit I'd expect it to fail at the same number of bytes each time. – Dan Feb 23 '10 at 0:36

Problem solved!

After TWO YEARS of on-and-off wrestling with this server I discovered that the app pool was set to time out at 5 minutes. Now I get a 500 error when the file finishes but I'm better equipped to deal with that.

share|improve this answer

Dpeending on what version of windows you are running (IIS 7), you may also need to adjust the request filtering module.

By default it cuts off at 5 MB or so. To change open an administrative command prompt:

C:\Windows\System32\inetsrv>appcmd set config -section:requestFiltering -requestLimits.maxAllowedContentLength:1048576

The size is in bytes.

share|improve this answer
Sounds good, I'm going to try that tonight. – Dan May 3 '10 at 2:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.