SOLVED: About FILES module

Is there a storage limit for each user?
How can we prevent Gbs of file uploads?

  • 550
  • More
Replies (15)
    • Hello Cem!

      Every permissions level has the following limits:

      • Storage Limit(Mb)
      • Max File Size Limit(Mb)
      • Max Files Limit 

      which you may edit. But "max file size" parameter depends from the server's settings like post_max_size and upload_max_filesize.

      Also, you may set the number of the action "Create file".

      • thanks Leonid super :)

        • After setting the max storage limit and max file size limit, when uploading it still shows the server file size limit instead of the limit that is set for that permission level. I set it to 1000 Mb, but it says "Maximum file size limit is 97.7 GB"

          Also, is there a place where it tells the user how much space they have used and how much space is available for them?

          Also, when I put a number that is higher than 2GB, it saves as 2048Mb. So if I put 10GB limit, the highest the setting will save as is 2GB.

          • After setting the max storage limit and max file size limit, when uploading it still shows the server file size limit instead of the limit that is set for that permission level. I set it to 1000 Mb, but it says "Maximum file size limit is 97.7 GB"

            Thank you for the report: https://github.com/unaio/una/issues/1770

            Also, is there a place where it tells the user how much space they have used and how much space is available for them?

            No, but we have a ticket for this: https://github.com/unaio/una/issues/1611

            Also, when I put a number that is higher than 2GB, it saves as 2048Mb. So if I put 10GB limit, the highest the setting will save as is 2GB.

            It maybe that you have 2GB limit in PHP settings.

            • Hello Joseph!

              I set it to 1000 Mb, but it says "Maximum file size limit is 97.7 GB" 

              As I may see in your UNA now, it transfers the values like 1024Mb to 1 Gb correctly. 97.7 GB - this is the size of your upload_max_filesize parameter so UNA can't allow the size with greater value then this one.

              The same deal with the second part of your post - UNA can't allow more then you have in the server's settings.

              • In php settings all of the values are large. Much higher than 2GB. Is there anything else it could be? Is anyone else experiencing this 2GB limit?

                • In UNA there are 3 following limitations are checked for the max file size:

                  - user quota

                  - storage object quota (see sys_objects_storage table)

                  - upload_max_filesize php setting 

                  However it maybe limitations in your web-server which can't be checked in UNA

                  • This problem of whatever  we put to the storage limit it doesnt accept more then 2 GB is because of the int type in mysql database structure in sys_acl_levels table quota size field..
                    as the int type allows up to 2 GB or 2^31 , when we put a higher value to quota size field it just doesn't work.
                    I guess the field type needs to be bigint here. With bigint field type we can set bigger values then 2 GB for Storage Limit.
                    Alex T⚜️    LeonidS   Baloo 

                    • Thank you for pointing this out, great finding 👏 👍

                      https://github.com/unaio/una/issues/1820

                      • I changed QuotaSize and QuotaMaxFileSize to bigint. When uploading a video larger than 2GB, there is an error. Is there another setting to change for this? Smaller videos work perfectly.

                        store local tmp file failed (storeFileLocally_Storage)

                        • I also wanted to point out that the video uploaded fine, but the error for the >2GB video occurred during encoding so I think there is another limitation hidden somewhere. Possibly another int limitation?

                          • Has this been solved yet? I am still getting the 2MB limit after changing the settings in my PHP server.

                            • "error for the >2GB video occurred during encoding"

                              I am concerned, not to be bothersome because this is not really an emergency, but I still can't encode 4k movies because I can't encode any video larger than 2GB even after changing it to "bigint". I know this is an old thread, but were could the other limitations be that I can change?

                              I created a new thread because this deviates from the concept.

                              • Alex T⚜️ my server audit (php.ini) reflects the max upload size as 100M and as an administrator, my user quota is 100M, but the file upload dialog box still says 32M.  Which storage record and field must be changed in sys_objects_storage?

                                • Nevermind, Alex. 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!

                                  Login or Join to comment.