Fixing IIS7 Maximum Upload Size

Posted on 7/28/2011 | Printable Version | Comments (0)

If you have your Waypoint site hosted with Twin Harbor and you need to increase the maximum file upload size, you just need to contact us. But if you are hosting your own, you will need to make a change to the web.config file. Waypoint uses the standard maximum upload size attributes of ASP.Net. In IIS7 though, there are potentially 2 steps where there used to be just one. Here's what you need to do: Part 1: Add the following line of code inside the system.web section of the web.config file. You can change the values of maxRequestLength and executionTimeout as you see fit. maxRequestLength is set in kilobytes, and the executionTimeout is set in seconds.
 <httpRuntime requestValidationMode="2.0" maxRequestLength="50000" executionTimeout=”1200? />

Part 2:

IIS7 has a 30MB limit set overall, so if you are trying to allow files 30MB or larger, you'll also need to set the following. Inside your web.config file, add the following inside the system.webServer section.
        <requestLimits maxAllowedContentLength="2000000000" />
Thanks to this blog where I found this answer:


Be the first to comment below.

Post Comment