Enabling Large File Size Uploads
To enable uploads greater than 4 MB, you need to change the value of the maxRequestLength to the largest allowed combined file size for your application. The default value is 4096 or 4 MB.
1. Open the Solution Explorer, navigate to the web.config file and open it.
2. Set the MaxRequestLength and executiontimeout values to the following:
<httpRuntime maxRequestLength="102400" executionTimeout="3600" />
The settings for the Web.config file should appear like the following:
[IIS prior to version 7]
<configuration>
...
<system.web>
<httpRuntime maxRequestLength="102400" executionTimeout= "3600" />
...
</system.web>
</configuration>
[IIS 7]
<system.webServer>
......
<security
>
<requestFiltering>
<requestLimits
maxAllowedContentLength="1024000000"
/>
</requestFiltering>
</security>
</system.webServer>
This configuration enables uploading of files up to 100MB and upload periods up to 1 hour.
|