Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Folder Quote
#6
(12-01-2012, 05:46 PM)axel76 Wrote: 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.

IMHO, this is too simple. If there is folder with a quota and that quota is exceeded I could simply create a new subfolder and upload more documents. If I want to prevent that, I have to check for any quota of any parent folder.

Uwe
Reply


Messages In This Thread
Folder Quote - by axel76 - 11-30-2012, 04:32 PM

Forum Jump:


Users browsing this thread: