Start a conversation

Increase the Maximum File Size for Upload in DNN site

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="<,>,*,%,:,\,?" 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.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Senior Engineer Jessie

  2. Posted
  3. Updated

Comments