File Upload Size Limitation

How do I change the file and picture upload image size maximum to higher than 2 MB?

πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
  • 674
  • More
Replies (18)
    • This may be controlled by your web host. A lot of shared hosting plans have a max 2mb upload limit. Some web hosts let you change that. Some do not. You can contact your hosting provider and ask if they can change it. There are ways to change it yourself with a php.ini file and/or .htaccess file, but, it all depends on your web host.Β 

      πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
      • hi, haveΒ  similar question: is the max upload size limit set in Una, or is it totally dependent on my hosting? yesterday I uploaded 4.5mb file to my user cover, so if others are able to upload such large files the site will become slow very fast.

        Is there an option to limit max size, or I have to do that in htaccess?

        πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
        • Hello George Sp!

          In Studio panel->Permissions system app you may find 2 columns "Max File Size" and "Max Files". Just press "edit" icon near wished level and setup this limits in appeared popup (Max File Size in Megabytes), then press "Save".

          With the best regards, Leonid

          πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
          • very nice, thank you

            πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
            • You are welcome, George!

              πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
              • This is about "how to reduce limit". How to increase? from 2MB to, say, 5MB?

                πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                • Hello vavilon!

                  As shown above in "Permissions system app". But this parameters can't be larger than "post_max_size" and "upload_max_filesize" of your server.

                  With the best regards, Leonid

                  πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                  • On the upload form the text still says max file size of 2MB after changing on PHP server and in Studio-->permissions.Β  Any ideas on how to change this?

                    πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                    • Hello mrochek!

                      You need to be sure that your site uses the actual PHP.ini for this server. What values are shown in Studio->Dashboard->Host Tools->server audit area. What values have now "post_max_size " and "upload_max_filesize " parameters?

                      πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                        • post_max_size Β = 8388608 Β - OKΒ 
                        • upload_max_filesize Β = 2097152 Β - OKΒ 

                        This is different from the PHP settings on the server. Β How do I change this?Β  the php.ini file?

                        πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                        • I resolved it by changing the file upload size variable in the php.ini file.Β  Thanks!

                          πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                          • LeonidSΒ Does the Post_max_size have to be equal or greater than upload_max_filesize? Β My php.ini says 100M but the file upload dialog says 32M

                            πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                            • Nevermind, Leonid. Β I found the problem: Β The setting in my cPanel for Max Post Size was different than my php.ini file. Β Once I changed that, the dialogue box picked up my UNA user setting. Β Thanks!

                              πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                              • LeonidS Alex T⚜️ 

                                The next problem I have faced is this: Β After uploading a large file (~68MB) the upload dialogue box closes, but the file is not reflected in the new file form. Β (See images) . Β It is like there is no image to submit. Β Do you have an idea of why this happens and how I can fix it?

                                image_transcoder.php?o=bx_froala_image&h=3857&dpx=2&t=1596565111

                                image_transcoder.php?o=bx_froala_image&h=3858&dpx=2&t=1596565125

                                πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                                • So it turns out that my CPanel php settings page showed 128M for the Max_post_size, but the php.ini file showed 8M. Β Once I updated the php.ini file the upload was allowed to continue. Β Thanks to LeonidS for asking me for the server audit details since that alerted me to the discrepancy between the CPanel page and php.ini file.

                                  πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                                  • LeonidS mrochekΒ 

                                    I followed this thread and was able to adjust permissions and accessed php.ini file. Β My upload now shows whatever limit i set in permission (instead of just 2mb). However, I am stuck at the point describe above where the video seems to upload but then nothing. Β I have tried adjusting the number in cpan for php.ini but nothing has worked. Β Right now I have what you see below and I have the file size in permissions set to 20mb. Β 

                                    Would greatly appreciate any help! I am using version 11.0.4 via TMD.

                                    • memory_limit = 268435456 -Β OK
                                    • post_max_size = 134217728 -Β OK
                                    • upload_max_filesize = 57671680 - OK



                                    πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                                    • Hello PopAllure !

                                      Sometimes the mentioned variables may not depend from the php.ini files settings. You'd better ask your hosting provider to specify this part.

                                      πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                                      • Thanks for the reply.

                                        πŸ’“0 πŸ˜†0 😲0 πŸ˜₯0 😠0 0
                                        Not logged in users can't 'Comments Post'.
                                        1
                                        2
                                        1
                                        1
                                        2
                                        Added:
                                        Category:

                                        UNA - Network Infrastructure for Communities

                                        Close