Remove 30MB upload limit on IIS express

别来无恙 提交于 2019-12-19 16:24:51

问题


Does anyone know how to remove the 30MB upload limit, specifically for IIS Express?

I've tried editing the applicationhost.config and

 <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>

Seem to be set correctly?

Any ideas?


回答1:


You should change the server config file. The field you are looking for is

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

If it doesn't exist, adding it should override the defaults.



来源:https://stackoverflow.com/questions/11961590/remove-30mb-upload-limit-on-iis-express

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!