HttpPostedFile Maximum File Upload Size
April 14, 2010
I just ran into a file upload issue where file uploads were reaching the default maximum file upload size of 4MB. It was pretty straight forward to increase the HttpPostedFile maximum upload size, and I set it to 10MB for this site using the following in the web.config file:
<configuration>
<system.web>
<httpRuntime maxRequestLength="10240" executionTimeout="90" />
</system.web>
</configuration>
I’m not a huge fan of ASP.NET. The tools are really handy and in general customizable enough for what I need, but the fact that they seem to be massively overhauled (yet miraculously still not on the cutting edge) with every release yields an efficiency problem. I simply cannot learn a massive new library every couple years, it just doesn’t make sense.
Plus, I love to know HOW things work, instead of just THAT things work.