IIS 7 & IIS 8
Confusing required maxRequestLength and maxAllowedContentLength setti...
Last post Jul 27, 2010 09:00 AM by Leo Tang - MSFT
Jul 22, 2010 08:58 AM|LINK
Can somebody confirm that for IIS 7.5 I need to set the maxRequestLength and the maxAllowedContentLength values, to be able to upload large files?
If I don't set the maxRequestLength value, I'm not able to upload files larger than approximately 1 Mb. Even while the default IIS 7.5 maxAllowedContentLength value is 30000000 bytes (28.6 Mb).
These two required settings confuse me, hopefully someone can help me out.
<httpRuntime maxRequestLength="153600" executionTimeout="900" />
<requestLimits maxAllowedContentLength="157286400" />
Jul 27, 2010 09:00 AM|LINK
The maxRequestLength indicates the maximum file upload size supported by ASP.NET, the maxAllowedContentLength specifies the maximum length of content in a request supported by IIS. Hence, we need to set both maxRequestLength and maxAllowedContentLength values
to upload large files.