Remove 30 MB upload limit on IIS express

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

I tried editing 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>

Is it installed correctly?

Any ideas?

+5
source share
1 answer

You must modify the server configuration file. The field you are looking for is

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

If it does not exist, adding it should override the default values.

+9
source

All Articles