The following change need made to the web.config file.
<system.web>
<httpRuntime requestValidationMode="2.0" executionTimeout="600" maxRequestLength="2000000" />
<system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2000000000" />
</requestFiltering>
</security>
</system.webServer>
The executionTimeout is extending the maximum script execution to 10 minutes witch will be required for larger uploads. The maxRequestLength is the maximum size in kilobytes while the maxAllowedContentLength is the same maximum size but in bytes. So maxAllowedContentLength should be 1000 times the maxRequestLength.
These numbers of course can be adjusted as needed.
On a final note you may want to check C:\Windows\System32\inetsrv\config\applicationHost.config and verify that the following line is present and set to Allow.
<section name="requestFiltering" overrideModeDefault="Allow" />
No comments:
Post a Comment