Asp. Net Modifying the upload file size limit method
- 2021-08-31 07:41:31
- OfStack
Without saying much, take a look at the following code from this site 1
Under i. Configuration node
<system.webServer>
<security>
<requestFiltering>
<!-- In bytes maxAllowedContentLength-->
<requestLimits maxAllowedContentLength="2097151000"/>
</requestFiltering>
</security>
</system.webServer>
Modify node HttpRuntime under ii. System. web to
<!-- Unit is KB maxRequestLength-->
<httpRuntime maxRequestLength="2097151" executionTimeout="3600" useFullyQualifiedRedirectUrl="true" />