Imposing file quotas?
Permalink
I would like to have more control over how much disk space my c5 clients use. They'll be uploading lots of mp3's and likely flv's as well.
Just looking for some feedback if anyone has done this, or advice in the right way to do it:
Let's say you have a client account setup and they have a 500mb disk quota.
- Could c5 be setup to work with the actual user quota on the server?
If not, here's an idea that I would like to implement:
- Add a script to the file manager that would recurse through /files/ and get a MB total of everything in there
- Compare this total to the defined limit (maybe a user attribute?)
- If the total MB equals or exceeds the defined limit, de-activate the browse/upload buttons
Good idea? Bad?
Just looking for some feedback if anyone has done this, or advice in the right way to do it:
Let's say you have a client account setup and they have a 500mb disk quota.
- Could c5 be setup to work with the actual user quota on the server?
If not, here's an idea that I would like to implement:
- Add a script to the file manager that would recurse through /files/ and get a MB total of everything in there
- Compare this total to the defined limit (maybe a user attribute?)
- If the total MB equals or exceeds the defined limit, de-activate the browse/upload buttons
Good idea? Bad?