12

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
  • 2
    maxAllowedContentLength set in BYTES. maxRequestLength in KILOBYTES Aug 15, 2012 at 18:03

1 Answer 1

23

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.

2
  • 1
    Whoops was setting that in KB, not B :) Aug 14, 2012 at 22:18
  • 17
    By the way, the config file is at this place : ~\Documents\IISExpress\config
    – guogangj
    Mar 23, 2017 at 4:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.