Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove 30MB upload limit on IIS express

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?

like image 765
Chris Barry Avatar asked Aug 14 '12 22:08

Chris Barry


People also ask

What is max upload size IIS?

IIS limits the upload file size by default to 30000000 bytes which is approximately 28.6 MB. This can also be caused by a size restriction by the SMTP server configuration.

What is the default size limitation of file upload in asp net file upload control?

config. The property, maxRequestLength indicates the maximum file upload size of 28.6MB, supported by ASP.NET. You cannot upload the files when the FileSize property is below the maxRequestLength value.


1 Answers

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.

like image 72
HenryZhang Avatar answered Sep 19 '22 20:09

HenryZhang