Posts: 9
Threads: 3
Joined: Nov 2012
Reputation:
0
Hello,
is it possible by admin assign dir quota ?
Any user can upload without limits, and use all hard disk spacce..
Alex
Posts: 9
Threads: 3
Joined: Nov 2012
Reputation:
0
Hello,
It will be simple if you count and store ( into db table ) the size of any document after upload.
If user remove doc delete the size from db.
In the uplad page count into db ( not into folder ) total size assigned for folder, and if is out of quota disable upload button, and show alert..
What do you think about ?
Alex
Posts: 9
Threads: 3
Joined: Nov 2012
Reputation:
0
You should create a new column ( size ) in the tblDocuments,
or create a new table ( size_documents ) correlated to id documents.
Add new column ( quota ) in tblFolders.
When user go to upload page, SUM the total size docs and match with folder quota.
This will work with all platforms, will be very fast, and low CPU usage.
Regards,
Alex