【问题标题】:Remove 30MB upload limit on IIS express移除 IIS express 的 30MB 上传限制
【发布时间】:2012-08-14 22:13:35
【问题描述】:

有谁知道如何取消 30MB 的上传限制,特别是针对 IIS Express?

我已经尝试编辑 applicationhost.config 和

 <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="1050000"></requestLimits>
      </requestFiltering>
    </security>

<location path="api/media/AsyncUpload">
    <system.web>
      <httpRuntime maxRequestLength="1050000" /> 
<!-- The size specified is in kilobytes. The default is 4096 KB (4 MB). 1gb = 1048576 -->
        </system.web>
      </location>

似乎设置正确?

有什么想法吗?

【问题讨论】:

  • maxAllowedContentLength 以字节为单位设置。以千字节为单位的 maxRequestLength

标签: .net iis iis-express


【解决方案1】:

您应该更改服务器配置文件。您要查找的字段是

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

如果它不存在,添加它应该覆盖默认值。

【讨论】:

  • 哎呀是在 KB 中设置的,而不是 B :)
  • 顺便说一下,配置文件在这个地方:~\Documents\IISExpress\config
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-03-25
  • 1970-01-01
  • 2023-03-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-02-16
相关资源
最近更新 更多