I have a form that excepts a file upload in ASP.NET. I need to increase the max upload size to above the 4 MB default.
I have found in certain places referencing the below code at msdn.
[ConfigurationPropertyAttribute("maxRequestLength", DefaultValue = )]
This setting goes in your web.config file. It affects the entire application, though... I don't think you can set it per page.
<configuration> <system.web> <httpRuntime maxRequestLength="xxx" /> </system.web> </configuration>
"xxx" is in KB. The default is 4096 (= 4 MB).