I am currently working on an ASP.net C# web app. I am using the AjaxControlToolkit ASyncFileUpload, however, when I upload a certain file I get the error message Maximum Request Length Exceeded. Is there a way that I can incre开发者_如何学运维ase the size limit for file uploads.
Thanks for any help you can provide.
The maximum request length is set in web.config, specifically in the httpRuntime/maxRequestLength value.
<!-- Maximum 16 MB -->
<httpRuntime maxRequestLength="16384" />
Do be aware that there might also be a limitation in IIS depending on your version.
Max request length is defined in web.config in KB as 4096 (default to 4MB), you can change the following in web.config
<system.web>
<httpRuntime maxRequestLength="51200"
enable = "True"
executionTimeout="45"/>
</system.web>
</configuration>
精彩评论