Uploaded files in DNN Evoq have a default maximum size of 28MB. It can be increased or decreased using an easy change in the UI and in your web.config file.
- Access to a SuperUser account.
If you try to upload a file to the site larger than 28MBs, you'll receive an upload error preventing you from completing the upload.
To reproduce the issue:
- Go to Content > Assets > Select the Main Portal Folder.
- Click Asset > Upload the file.
To increase the maximum content length for your site, follow the procedure mentioned below:
Locate the web.config file that is typically present in the root folder of your site.
- Note: OnDemand clients can access their web.config file in the UI by going to PersonaBar > Settings > Config Manager > Config Files and choosing web.config from the drop-down.
Add the following parameters to the web.config file. For example, we are increasing the max upload size to 70MB. The value in bold is in bytes:
<system.webServer>NOTE: Megabytes can be converted to bytes using the following formula: (MB value)*1024*1024.
- If you are unable to find maxAllowedContentLength in your web.config:
- Enable Request Filtering in your Windows Features
- Go to your site in IIS and select the Request Filtering feature, then select Edit Feature Settings
- Under Maximum allowed content length (Bytes), enter the size you would like as your maximum file upload size.
- Hit OK to save the changes. This will add the security section to web.config and set it to the correct value.
- Also in web.config, you will need to confirm that the maxRequestLength has been increased. The value in bold is in kilobytes
<httpRuntime targetFramework="4.5" shutdownTimeout="120" executionTimeout="1200" useFullyQualifiedRedirectUrl="true"NOTE: Megabytes can be converted to kilobytes using the following formula: (MB value)*1024
maxUrlLength="2048" requestPathInvalidCharacters="<,>,*,%,:,\,?" enableVersionHeader="false" requestValidationMode="2.0" fcnMode="Single" />
After saving the changes in the web.config file, increase the maximum size in DNN. To do so, navigate to Settings > Security.
Navigate to More > More Security Settings, change the value of Max Upload Size (MB), and click Save.
- The values in the web.config file are in bytes and kilobytes, while the value inside the DNN configuration is in Megabytes.
Attempt to upload a file larger than the previous 28 MB limit file to the Assets section in the Persona Bar.
This can be done by following the steps laid out in the Diagnosis section.
I'm using DNN Platform 9.5 and tried this procedurelaid out here, but right at "Diagnosis" I got puzzled as the Persona Bar in my installation doesn't have a "Assets" link under "Content". I only got "Pages" and "Recycle Bin". It's a Windows 10 installation with IIS10 and MSSqlServer 2019. After you procede with a standard installation process, shouldn't this manu link be available right out of the box along with "Pages" and "Recycle Bin"?
Please sign in to leave a comment.