ADS

Featured

Increase IIS upload limit from 30 Mb to 2 Gb

Internet Information Services, a website publishing service, has a file upload restriction.

However, starting with version 7.0, it is possible to increase and / or reduce the limits from the Web.Config configuration file.

By default, IIS stipulates a size of 30 Mb per upload (when using appropriate upload components in your application).



In the system.webServer section of web.config, you need to define a security filter, which will allow requests above the standard.

This is because the header and the content sent to the server when submitting on the web form, uploads information to the server, and it cannot be unlimited so as not to overload it.

So use your changes with caution and review the need for your application to actually need an upload of this size.

Here is the configuration of the web.config file:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxAllowedContentLength="2000000000" />
</requestFiltering>
</security>    
</system.webServer>
</configuration>

It is not possible to place a limit greater than 2 GB.

No comments