File Upload Limits in IIS7 – Increasing the Size Limit

A web application running in IIS7 on Windows Server 2008 will reject any upload that is larger than 30MB. This is the default size limit for IIS7. To increase the maximum file size, add the following code to <system.webServer> in the web.config file:
(This example sets the limit to 500MB)

<security>
 <requestFiltering>
  <requestLimits maxAllowedContentLength=”500000000″ />
 </requestFiltering>
</security>

You must restart IIS for the setting to take effect.

Tags :