这里是我设置 maxRequestLength
为2GB(最大值),表示 ASP.NET 支持的最大请求大小:
<system.web>
<httpRuntime maxRequestLength="2097151" executionTimeout="3600"/>
...
这里我设置了maxAllowedContentLength
为4GB(最大值),它指定了IIS支持的请求内容的最大长度。
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="4294967295"/>
</requestFiltering>
</security>
...
我想上传4GB的文件,但受到maxRequestLength
字段的限制。
我注意到这个第三方上传工具(http://www.element-it.com/onlinehelp/webconfig.html)有一个ignoreHttpRuntimeMaxRequestLength
属性,可以允许它上传4GB的文件。
请问是否有人知道我是否可以像这个上传工具一样忽略maxRequestLength
值?