Jump to content

folder size for uploads


leegodden

Recommended Posts

Hi Im building a file hosting script and need to do two things. I have two sets of users FREE and PAID. Both users can upload files to thier own folder, but free users can upload only 2gb of files and paid users can upload 10gb. Is there anyone who could give some pointers on how i can:

 

Allow different folder quotas/sizes for both users 

Stop both users exceeding their quota.

inform them when thier quota is full.

 

Hope someone can give me help on this

 

thanks

Lee

Link to comment
Share on other sites

Just a thought...

 

have a small database table (or add fields to existing user table)  where you have id, userid, maxquota, used - when user logs in check space available (maxquota - used) when uploading simple compare file size against space available - if the upload would exceed then redirect to message page that they are attempting to exceed quota

would require that paid and unpaid are all registered users (similar to this forum, where even though its is free, you still need to register in order to post)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.