You are here > Blog > IIS7-Files-Size-Limit
Categories

Twitter

Twitter Updates

IIS7 Files Size Limit

For one reason or another, users ask DNN administrators to permit uploading files of big sizes using the File Manager. If you have ever experienced a problem with uploading big files through the DotNetNuke File Manager, read on to find which solutions I was able to find.

Option 1

Maximum file size can be indicated in the "web.config" file which is located on the server. In the file find the <system.webServer> tag and add the following code block on top of it

    <security>
        <requestFiltering>
            <requestLimits maxAllowedContentLength="524288000"/>
        </requestFiltering>
    </security>

524288000 = 500MB

Here is the screenshot to illustrate the point

 web.config

Also, make sure that your maxRequestLength in web.config is more than 8MB (size should be indicated in bytes). In the example below you can see that the file size is set to 100MB:

 <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="102400" requestLengthDiskThreshold="102400" executionTimeout="1800" />
 max request lenght

Option 2

According to this article you should remove the "maxAllowedContentLength" value from the "applicationhost.config" file in IIS7 to lift the 30MB limit.

Option 3

There are modules out there developed specifically for uploading files of big sizes. One of those can be downloaded for free from the following website www.oliverhine.com

Archive

Archive by Years
Subscribe Now