How to Increase the DNN File Upload Limit

DNN
File Size
 
By default DNN allows for files 8MB and under to be uploaded.  This limit may be manually edited to allow for larger files.  If you need to allow for large files, follow the instructions below.  Please note these instructions will only work for file uploads through the DNN File Manager.  If you need to change the HTML Editor limit, please follow this article.
 
 
1.  Look in the web.config for the following line:
<httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" requestLengthDiskThreshold="8192" />
2.  To allow for larger files, you must first calculate what the new limit will be in KiloBytes e.g. 1MB = 1024k.  If you need to allow for 10MB uploads, you'll alter this to 10240 as follows:
<httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="10240" requestLengthDiskThreshold="10240" />
3.  New to IIS7+ you must also specify the Max file upload size in the security section of the system.webServer section:
<system.webServer>
    <security>
      <requestFiltering>
        <requestLimits maxAllowedContentLength="300000000" />
      </requestFiltering>
    </security>
</system.webServer>
 
Upload Time
 
In addition to changing the file upload size, it is important to consider how much time should a larger file upload be allowed.  Larger files generally take longer to upload, so it's recommended to increase the timeout limit.  In the same line within the web.config used to edit the file upload size, add in the "executionTimeout" attribute if it has not already been added as such:
<httpRuntime useFullyQualifiedRedirectUrl="true" executionTimeout="180" maxRequestLength="10240" requestLengthDiskThreshold="10240" />
The executionTimeout is measured in seconds.  In the example above, a timeout will occur after 180 seconds.  If you need longer than this, increase this value as needed.
 
 
 

Add Feedback