« The importance of risk management | Main | Yahoo enters the mp3 world with an impresive replacement to iTunes »

Overcoming IIS http post file upload limit

To solve this problem go to C:\windows\system32\inetsvr and edit metabase.xml after stopping IIS.

The default setting of AspMaxRequestEntityAllowed is set to 204800. To
allow for larger upload, increase this setting. Example: To increase to 1MB
then 5 * 200kb = 1MB. Multiply 204800 * 5 =1024000 so change the setting
to 1024000.

Alternatively, if you install the IIS Resource Kit it includes a tool called Metabase Explorer which can alter the metabase while IIS is running.

In some cases, you may need to enable a setting called "Enable Direct Metabase Edit" in IIS. To do open up the properties dialog for the computer name at the top of the IIS Manager window and the option should be listed there.

Comments

do you have a solution for Windows 2000 server??

What a legend. First thing I find in Google and it's perfect. Terrific!

Hello!
Very Interesting post! Thank you for such interesting resource!
PS: Sorry for my bad english, I'v just started to learn this language ;)
See you!
Your, Raiul Baztepo

I was having a 30mb size problem with POST requests to a CGI script and found it was a problem with the URLSCAN filter in IIS 6. In the URLSCAN.INI file in the \windows\system32\inetsrv\urlscan directory, I found a setting for MaxAllowedContentLength setting in the RequestLimits section that was limiting the POST size.

In IIS 7, click on the site that you want to adjust the settings before.
Click on the ASP icon under IIS. There is a "Limits Properties" that you
need to expand. Under there, there is an option for "Maximum Requesting
Entity Body Limit". This is the equivalent of the "
ASPMaxRequestEntityAllowed" in 2003 / IIS 6 that you had to manually set.

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)