IIS / ASP.NET MVC - 允许大文件上传

时间:2013-03-10 14:02:24

标签: asp.net-mvc iis-7

我正在尝试配置我的ASP.NET MVC Web应用程序,以允许文件上传高达350MB。我在IIS7上。

我尝试了以下Web.config更改:

system.web

下添加以下内容
<httpRuntime maxRequestLength="2097151" requestLengthDiskThreshold="2097151" executionTimeout="270" />

我也试过这个 system.webserver

 <system.webServer>
      <security>
          <requestFiltering>
              <requestLimits maxAllowedContentLength="367001600"/>
          </requestFiltering>
      </security>
  </system.webServer>

对于这两种情况,我仍然在服务器日志中看到HTTP 404 13问题(文件太大),我在浏览器中看到404。

是否还有其他影响大型文件上传的设置?

0 个答案:

没有答案
相关问题