DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Max File Upload not above 28 Mb DNN 9

 6 Replies
 3 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 1
New Around Here

You can configure the max file upload with the security settings, but a value above 28 Mb is not accepted. So I changed the settings in the web.config (maxRequestLength), but only values below 28 Mb are reflected in the UI security settings, and what's a bigger problem, also not reflected in the file upload within the site assets. 

Is this a bug? (I've checked versions from 9.3.2 uptil 9.81 but no improvement on this subject). 

Growing Member
Posts: 51
Growing Member

Hi Peter,

I found this in the code of DNN, in the method DotNetNuke.Common.Utilities.Config.GetMaxUploadSize:
[code]
if (httpNode == null && Iis7AndAbove())
{
    const int DefaultMaxAllowedContentLength = 30000000;
    return Math.Min(maxRequestLength, DefaultMaxAllowedContentLength);
}
[/code]

So it's definitely intentional, but I don't know why that is. Maybe you can create an issue on GitHub so it can be discussed wether or not this is something to fix?

Senior Member
Posts: 1325
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

On IIS7+ you need to add a node to specify the maxAllowedContentLength for requests.
(maxAllowedContentLength  = Bytes)

Add this to your web.config:

<code><system.webserver><security></security></system.webserver></code>< system.webServer>
    < security>
      < requestFiltering>
        < requestLimits maxAllowedContentLength="2147483647" />
      < /requestFiltering>
    < /security>
< /system.webServer>

Growing Member
Posts: 51
Growing Member
But even then, DNN still seems to use 30000000 as a maximum...
New Around Here
Posts: 9
New Around Here

DNN ver. 09.10.02

So is it possible to upload files over 28Mb ?

 

New Around Here
Posts: 10
New Around Here
Hi Peter,
You can set the maximum file upload size use the method mentioned in the following page:
https://dnnsupport.dnnsof...mum-File-Upload-Size
Best regards,
Linda

-
Website: https://www.dnngo.net
E-mail account: [email protected]
Skype: dnngo-linda
New Around Here
Posts: 10
New Around Here
Hi Peter,
You can set the maximum file upload size use the method mentioned in the following page:
https://dnnsupport.dnnsof...mum-File-Upload-Size
Best regards,
Linda

-
Website: https://www.dnngo.net
E-mail account: [email protected]
Skype: dnngo-linda

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved