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??
Posted by: Brian | September 26, 2006 06:19 PM
What a legend. First thing I find in Google and it's perfect. Terrific!
Posted by: Dan | November 20, 2006 11:31 PM
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
Posted by: RaiulBaztepo | April 1, 2009 05:37 AM
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.
Posted by: Sean | April 15, 2009 01:16 PM
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.
Posted by: Hawkey | October 7, 2009 07:34 PM