This article demonstrates the web.config changes needed to increase the default size and request options for media uploads. In this example the settings will support up to 100 MB uploads. There is also an example for 500 mb in the attachment configs.zip which are for stock Alloy starter site web.configs.
100mb:
<configuration>
<system.web>
<!-- ASP.NET settings, specifies the limit for the input stream buffering threshold in kB -->
<httpRuntime maxRequestLength="1048576" requestValidationMode="2.0" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<!-- IIS settings, specifies the maximum length of content in a request in bytes, default value is 30000000 -->
<requestLimits maxAllowedContentLength="1073741824" />
</requestFiltering>
</security>
</system.webServer>
<location path="EPiServer">
<system.web>
<!-- Override settings in edit and admin mode -->
<httpRuntime maxRequestLength="1048576" requestValidationMode="2.0" executionTimeout="7200" />
</system.web>
</location>
</configuration>
For a full web.config please see attachment where there is an example for 500 mb which is based of the Alloy starter site web.configs.
The concepts in the configuration are based on information in the following resources.
-
configs.zip
10 KB Download
Comments
0 comments
Please sign in to leave a comment.