相关疑难解决方法(0)

有没有办法忽略2GB文件上传的maxRequestLength限制?

这是我设置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其他上传工具的价值?

c# asp.net iis iis-7

11
推荐指数
1
解决办法
3万
查看次数

标签 统计

asp.net ×1

c# ×1

iis ×1

iis-7 ×1