IIS默认传输文件大小为30M,最大允许传输为2G (2147483647)
- 增加
<system.webServer>
<security>
<requestFiltering allowDoubleEscaping="true" >
<requestLimits maxAllowedContentLength="2147483647" />
</requestFiltering>
</security>
</system.webServer>
二、增加
<system.web>
<httpRuntime targetFramework="4.5.2" maxRequestLength="2147483647" executionTimeout="6000"/>
</system.web>
点击“管理”下的“配置编辑器”。
- 设置上传超时时间限制。
点击下拉菜单节(S),选中system.web>httpRuntime
将executionTimeout的值设为00:30:00(即30分钟)
- 设置上传文件大小限制。
点击下拉菜单节(S),选中system.webServer>security>requestFiltering
展开requestlimits,将maxAllowedContentLength的值设为102400000(即100m)
注:这样修改直接就能生效,无需重启iis或者服务器。