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?
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With