File Upload Size Limitation

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

  • 977
  • 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. 

      • 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?

        • 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

          • very nice, thank you

            • You are welcome, George!

              • This is about "how to reduce limit". How to increase? from 2MB to, say, 5MB?

                • 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

                  • 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?

                    • 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?

                        • 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?

                        • I resolved it by changing the file upload size variable in the php.ini file.  Thanks!

                          • 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

                            • 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!

                              • 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

                                • 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.

                                  • 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
                                    • 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.

                                      • Thanks for the reply.

                                        Login or Join to comment.