> What I am planning to do, in my scenario, > users have their individual folders. which I need to check > the sizes when a user uploads stuff to another user's > directory. so along with user info in user table, I also > store his maximum allowed limit and his current used limit. > When someone uploads > file to the user's directory I check if it exceeds the limit, > just by adding the currently uploaded file size to the > current user limit(from the database). If less, I will upload > it and update the current size entry in the db.
You could keep a running tally of the folder's size as you go. Each time they add a file, get the file size and add it to the previous total. This doesn't help for existing files in your system, if there are any. You'd have to run a batch file to load the initial values, then the above suggestion would work. Did you check cflib? There might be a function for this, and Java probably has one too (you can do Java in CF). --------- This transmission may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format. Thank you. A1. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236630 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

