取消对IIS快递30MB上传限制(Remove 30MB upload limit on IIS e

2019-06-27 01:22发布

有谁知道如何删除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>

似乎是正确设置?

有任何想法吗?

Answer 1:

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

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

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



文章来源: Remove 30MB upload limit on IIS express