Increasing the Maximum File Upload Size



When you need to upload files larger than the 28MB default limit, you need to make changes to the web.config file.

This article describes the process of increasing the maximum length of the content that can be uploaded on a site. 




To increase the maximum content length for your site, follow the procedure mentioned below:

  1. Locate the web.config file that is typically present in the root folder of your site.

  2. Add the following parameters to the web.config file. The value in bold is in bytes:

    <requestLimits maxAllowedContentLength="104857600"/>
    you also need to confirm that the maxRequestLength has been increased. The value in bold is in KB
    <httpRuntime targetFramework="4.5" shutdownTimeout="120"
        executionTimeout="1200" useFullyQualifiedRedirectUrl="true" 
    maxRequestLength="153600" requestLengthDiskThreshold="28672"
    maxUrlLength="2048" requestPathInvalidCharacters="&lt;,&gt;,*,%,:,\,?" enableVersionHeader="false" requestValidationMode="2.0" fcnMode="Single" />
  3. After making the changes in the web.config file, increase the maximum size in DNN. To do so, navigate to Settings > Security.


  4. Navigate to More > More Security Settings, change the value of Max Upload Size (MB), and click Save.


  • The value in the web.config file is in bytes, while the value inside the DNN configuration is in Megabytes.
  • It is critical to keep the value in DNN's configuration less than or equal to the value in web.config.


Back to Top 



Please sign in to leave a comment.