这是我设置maxRequestLength为2GB(最大值)的位置,表示ASP.NET支持的最大请求大小:
<system.web>
<httpRuntime maxRequestLength="2097151" executionTimeout="3600"/>
...
Run Code Online (Sandbox Code Playgroud)
在这里我设置maxAllowedContentLength为4GB(最大值),它指定IIS支持的请求中的最大内容长度
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="4294967295"/>
</requestFiltering>
</security>
...
Run Code Online (Sandbox Code Playgroud)
我希望能够上传高达4GB的文件,但我受到了该maxRequestLength领域的限制.
我注意到这个第三方上传工具(http://www.element-it.com/onlinehelp/webconfig.html)有一个ignoreHttpRuntimeMaxRequestLength属性,允许它上传最大4GB的文件.
有谁知道我是否可以忽略maxRequestLength其他上传工具的价值?