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
  • 464
Replies (15)
  • 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
                                Not logged in users can't 'Comments Post'.
                                Added:
                                Category:

                                UNA - Social Media Software Framework

                                Close