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

Sort:
You are not authorized to post a reply.





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





      Hi Peter,

      I found this in the code of DNN, in the method DotNetNuke.Common.Utilities.Config.GetMaxUploadSize:


      if (httpNode == null && Iis7AndAbove())
      {
          const int DefaultMaxAllowedContentLength = 30000000;
          return Math.Min(maxRequestLength, DefaultMaxAllowedContentLength);
      }


      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?






      Veteran Member





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

        Add this to your web.config:

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






        Growing Member





          But even then, DNN still seems to use 30000000 as a maximum...





          New Around Here





            DNN ver. 09.10.02

            So is it possible to upload files over 28Mb ?

             






            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





                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
                You are not authorized to post a reply.

                These Forums are dedicated to the discussion of DNN Platform.

                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