IIS
Maximum upload file size in IIS - Reference info
https://support.microsoft.com/en-us/kb/815179
The following example shows a minimal Web.config file:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
</system.web>
</configuration>
A Web.config file that sets max size that's allowed to be uploaded to 2 Gb (2147483647 bytes)
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2147483647" />
</requestFiltering>
</security>
</system.webServer>
</configuration>
http://www.webtrenches.com/post.cfm/iis7-file-upload-size-limits
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
</system.web>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true" />
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="524288000" />
</requestFiltering>
</security>
</system.webServer>
</configuration>
http://forums.iis.net/t/1169846.aspx
Can somebody confirm that for IIS 7.5 I need to set the maxRequestLength and the maxAllowedContentLength values, to be able to upload large files?
If I don't set the maxRequestLength value, I'm not able to upload files larger than approximately 1 Mb. Even while the default IIS 7.5 maxAllowedContentLength value is 30000000 bytes (28.6 Mb).
These two required settings confuse me, hopefully someone can help me out.
The settings:
<system.web>
<httpRuntime maxRequestLength="153600" executionTimeout="900" />
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="157286400" />
</requestFiltering>
</security>
</system.webServer>
The maxRequestLength indicates the maximum file upload size supported by ASP.NET, the maxAllowedContentLength specifies the maximum length of content in a request supported by IIS. Hence, we need to set both maxRequestLength and maxAllowedContentLength values to upload large files.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<httpRuntime maxRequestLength="2147483647" />
<httpModules>
<add name="UploadModule" type="UploadModule,UploadModule"/>
</httpModules>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="4294967295" />
</requestFiltering>
</security>
</system.webServer>
</configuration>
http://www.web-site-scripts.com/knowledge-base/article/AA-00696/0/Increasing-maximum-allowed-size-for-uploads-on-IIS7.html
https://www.iis.net/configreference/system.webserver/security/requestfiltering/requestlimits
http://www.owenwebs.com/2014/04/08/increase-iis-file-upload-limits/
https://jwcooney.com/2013/11/14/iis7-increase-file-size-upload-restrictions/