Community

Forums » 3rd Party Product Discussions

Storage Quota vs Upload Counts -priority for disabling uploads?

    • 145 posts
    October 5, 2018 12:07 AM EDT

    Hey All, Any help would be appreciated.Trying to confirm the points below are true.

     

    Storage Quota : Mb/Gb  vs Upload Counts

    ------------------------------------------------------------------------------
    Storage Quota is Mb or Gb  ; Set by Member Level for a User
    By Counts we Mean :  Counts of Uploads for Photos, Audio, Video, Media
     
     

    1) How is this Tracked in the Database?
    Does Upload Count mean, irrespective of how many Photos he has already uploaded and  then, Deleted  - the count always increases by 1 ?  
     
     
    Example : lets say a User's Member Level Storage Limit is 
    Quota : 10 MB
    Limit Upload Counts of Photos : 5
    If he uploads  5 pics , then deletes 4 
    - the database keeps track that he only has 1 pic .
    now he uploads 2 more pics
     
    is his upload count 7 or 3?
     
    2) Which has more Priority?
    Storage Quota or  Count Uploads Limit
    Which one  prevents a user from uploading, when either conditions are met?
     
    Priority
    Lets say User has 10 MB Limit
    Limit Upload Counts of Photos : 6 
    He uploads  7 photos which are 2 MB each.
    Which disables him from uploading?
    - hes gone over his Storage quota limit : 14 Mb
    - or hes gone above the Count Limit : 7 
     
     
    Hope its clear, please feel free to let me know..
    Thanks !
    • 145 posts
    October 5, 2018 12:14 AM EDT

    1 More Question

     

    1 More Question: 

    Where is this 2 MB Limit Set in Social Engine?

    I do not have this limit set in my php.ini or .htaccess file.

    In fact, I have it set as 4 Mb in upload_max_filesize

     

    So where is the settings coming from ?

    Thanks

     

    • 2594 posts
    October 5, 2018 4:41 AM EDT

    Please set the server to be per the requirements as that is far too low for the upload_max_size. https://support.socialengine.com/php/customer/portal/articles/1649350-socialengine-requirements There are two values there too that need to be at 15mb. I'll have to go look at the other stuff.

    • 145 posts
    October 5, 2018 4:46 AM EDT

    Thanks Donna,

    Exactly.

    I havent set that limit . I have set it as 512M in php.ini

    but thats what Im trying to find why its showing 2M.

    Checking with the 3PD, if they made any changes.

    • 2594 posts
    October 5, 2018 4:54 AM EDT

    Yeah check there but please check both settings in the requirements, post max and max upload. I'm testing on local and am able to upload a 5mb photo without any message showing.

    • 2594 posts
    October 5, 2018 4:54 AM EDT

    Is this a third party plugin settings? For the other settings you are asking about or are you asking about default settings?


    This post was edited by Donna at October 5, 2018 4:55 AM EDT
    • 145 posts
    October 5, 2018 4:55 AM EDT

    sorry,

    I meant I have set it as

    32M for  upload_max_filesize  and post_max_size = 32M

    But I see 2M , so dont know where thats set up.

    Thanks

    • 2594 posts
    October 5, 2018 4:56 AM EDT

    Bit early for me lol. I know we have settings here admin/authorization/level/edit but I also know that third party plugins have their own settings in some things.

    • 2594 posts
    October 5, 2018 5:00 AM EDT

    I also can't find upload count anyplace. All I can find is the storage setting per member level. (Your first post questions)

    • 145 posts
    October 5, 2018 5:03 AM EDT

     

    "For the other settings you are asking about or are you asking about default settings?.."

    Regarding Storage vs Count- Its a SE question.

     

     

    Regarding the 2MB photo upload issue ,The message is from a 3DP plugin.

     

    • 2594 posts
    October 5, 2018 5:04 AM EDT

    Where is that count then? I cannot find it. Only got a few hours sleep so perhaps my brain is sleeping. I know where the storage setting is. 

    • 145 posts
    October 5, 2018 5:15 AM EDT

    LOL... I need my cuppa tea too.

    Totally hear ya.

     

    The question I asked about storage vs count was to understand how its designed on a top level,

    so we can understand how the resources are consumed (uploads/storage( by users) and accordingly plan the packages.

     

     

    For  SE ,  I think theres only 1 ,I know of

    the photo uploads are calculated for Advanced Activity Feed here..

    https://www.playmusician.com/admin/album/level

     

     

    For 3DP

    -----------

    Audio

    https://www.playmusician.com/admin/sitemusic/level

    Videos

    https://www.playmusician.com/admin/sitevideo/video-level

    Multiple Listings - Audio / Video Limits

    https://www.playmusician.com/admin/sitereviewpaidlisting/package/edit/listingtype_id/1/package_id/1

     

    • 145 posts
    October 5, 2018 5:18 AM EDT

    Theres no actual word "count", its just to explain my point (the counting of uploads)

     

    • 145 posts
    October 5, 2018 5:19 AM EDT

    as stated above

    By Counts we Mean :  Counts of Uploads for Photos, Audio, Video, Media

    • 145 posts
    October 5, 2018 5:29 AM EDT

    Basically Storage Quota vs Max Upload Limits (which are kept tracked or counted in the database)

     

     

    • 2594 posts
    October 5, 2018 5:34 AM EDT

    Guess this is where the confusion is:

    Example : lets say a User's Member Level Storage Limit is 
    Quota : 10 MB
    Limit Upload Counts of Photos : 5
    If he uploads  5 pics , then deletes 4 
    - the database keeps track that he only has 1 pic .
    now he uploads 2 more pics
     
    is his upload count 7 or 3?
     
    Your example above is showing a count being stored. You also mention a limit to count. The only count limit is to how many photos can be loaded at one time in activity feed so as to avoid a member mass uploading a million photos to the activity feed in one upload. It's not for how many in total over time. Taking that count out of the equation since it's only for a "one sitting" sort of thing, do we still have a question? Or are you speaking of stats and not limits?
    • 145 posts
    October 5, 2018 5:38 AM EDT
    Donna said:

    Yeah check there but please check both settings in the requirements, post max and max upload. I'm testing on local and am able to upload a 5mb photo without any message showing.

     

    Thats another issue , I was coming to !

    Theres no alerts to the user or admin - if he has reached the limit.

    Thats been in there for a long time and always wondered why theres no message to let the user and admin know whats going on.

    There is also no message to the user and admin if his storage quota has been reached.

     

    To get to that issue,

    we are trying to figure out how storage quota works in conjunction with Upload Limits.

     

    • 2594 posts
    October 5, 2018 5:42 AM EDT

    TBH I have not tested the storage quota much other than an old bug report that we were able to show wasn't a bug. I can test it more after this release. We have a patch coming in a little while. 

    I do know there are no warnings and that's in the improvement list.

    • 145 posts
    October 5, 2018 5:45 AM EDT

    Without knowing if and how storage quota and upload limits work as they should,

    there is no way to have users pay up or use subscription packages/ plans for the space they consume.

     

    Automatic emails and alerts to user and admin,

    when the storage or upload limits are met is how normal hosting companies work.

    Also, as admins we cannot know how much storage is used or if the suer has uploaded more than what we have set.

    We are essentially reselling (buying and renting ) a hosting space like Amazon or other hosting vendors .

    Thats why its critical that storage quota and upload limits work perfectly for the admin and the user.

     

    Now , im gonna have that cup of tea :))

    • 145 posts
    October 5, 2018 5:57 AM EDT

    Donna said:
    "The only count limit is to how many photos can be loaded at one time in activity feed so as to avoid a member mass uploading a million photos to the activity feed in one upload"

    1) I did not know that. Its very unclear and ambigous.

    "How many photos to allow in an Activity Feed? Enter the maximum number of photos that are allowed to be uploaded in an activity feed."
    It could also mean "to allow" as in total amount of uploads.Now we know.

    I will check with the 3 Dp if their settings mean the exact same thing.

     

    2) "do we still have a question? Or are you speaking of stats and not limits?"
    Yes. How does the Storage Quota keep tabs of users disk space used? Is it in real time?
    What happens when the quota is reached?
    Thanks

    • 145 posts
    October 5, 2018 6:04 AM EDT
     

    Just to give you a backdrop, as to why we are looking into this.

     

    https://support.socialengine.com/php/customer/portal/articles/1665238-admin-panel---manage->-member-levels

    Member Levels can be used to give certain members more privileges than others. You can grant/restrict a Member Level's access to features and sections of the community. You can also assign levels that have moderation or administrative capabilities. Additionally, using the Subscriptions feature, you can charge your members to be a part of a more feature-filled Member Level. The following video will give you a quick overview of what is possible with member levels:

     

    We are using the different Member Levels to allocate different Quotas.

    example 1

    member Level 1 = Storage quota 100 MB

    Member Level 2 = Storage Quota 1 Gb

    Based on the Member levels - we are assigning subscription packages.

    example 2

    Member Level 1 = Storage quota 100 MB < subscription package 1 ($0.99)

    Member Level 2 = Storage Quota 1 Gb ($2.00)

     

    thats why Storage Quota and upload limits come into play

    Thanks

     

    • 2594 posts
    October 5, 2018 6:31 AM EDT

    Yes I know how they storage quotas are used for member levels as we use them here and I use them on my own site. I just hadn't tested that much and figured that if I had it at 2mb for example, a user could only upload that amount and once that is reached they can't upload more. I'll test on local but you could also test on your development site by setting the quota super low and using a test user to try a few things. It might be faster for you to test as I have to get a few things done before I can test. :)

    • 145 posts
    October 5, 2018 6:39 AM EDT

    Sure Donna :) will do it .

    testing time...

    Thanks 

    • 145 posts
    October 5, 2018 6:43 AM EDT

    I also want to confirm

    1) If the 3Dp audio/video/photo upload limits mean exactly the same thing "at one shot uplaods / 1 sitting"

    or does it mean they keep tabs of the number of uploads.

     

    2)How the 3DP gives warnings / alerts for their limits.

    We have tested 3dp limits out. but found no warnings either. It just stops uploading or craps out.

     

    3) If a plugin which sets upload limits is disabled, does the upload limit also get disabled.

    What happens then?

     

    So back to the drawing board lol


    This post was edited by playmusician at October 5, 2018 7:11 AM EDT
    • 145 posts
    October 5, 2018 6:45 AM EDT

    for example, in the below case.

    The user has not reached his limit , but hes still getting the message "You are allowed to upload max 5 photos"

    He only has 2 uploaded so far. and it prevents him from uploading anymore,...

    but gives no error...just hangs.


    This post was edited by playmusician at October 5, 2018 6:45 AM EDT