Asp. NET Size Control Method for File Upload of Ultra Simple
- 2021-10-15 10:24:41
- OfStack
Add the following code under the system. web node in web. config:
maxRequestLength = "8192" in Line 2, where the maximum limit is 8MB, which can be set by yourself. executionTimeout = "800", executionTimeout default (that is, default) is 90 seconds
<system.web>
<httpRuntime maxRequestLength="8192" executionTimeout="800"/>
</system.web>