Knowledgebase: DotNetNuke
Increase the Maximum File Size for Upload in DNN site
Posted by DNN4Less Support Engineer Jessie, Last modified by DNN4Less Support Engineer Jessie on 22 March 2021 04:05 PM

Here are the steps to update the Max File size that may be uploaded to a DNN Site.

1. Open the web.config file with your favorite text editor.
2. Update the httpRuntime tag with the maximum file size you want.  Look for the httpRuntime tag.

The default httpRuntime tag might look as follows:

<httpRuntime targetFramework="4.5" shutdownTimeout="120" executionTimeout="1200" useFullyQualifiedRedirectUrl="true" maxRequestLength="29296" requestLengthDiskThreshold="81920" maxUrlLength="2048" requestPathInvalidCharacters="&lt;,&gt;,*,%,:,\,?" enableVersionHeader="false" requestValidationMode="2.0" fcnMode="Single" />

Replace the value of maxRequestLength with the maximum file size you want.

maxRequestLength is stored as kilobytes. Example: You can use 2097152 KB (equivalent to 2 GB).

4. Save.

5. Recycle the application pool to allow the changes to take effect.

(0 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).