Hi, my web site, will be allowing business to create there small online presence. They can use the online wizzard to create a html doc and also upload there own images.
My question is, what would be the best way to quoter them, eg make sure they dont use more than 1mb of space (sure its inlikely, but i dont want 100mb .zip files being uploaded as .jpg (or even split). etc.).
would it be best to record every single file in a table in my database and work from there (with file sizes etc) - but that would mean, say on average each business has 5 files, hyperthetically that could mean millions of entries in the database - is that a bad thing..
Or, if i place each users stuff in a directory, is there a way to get the total file size of a directory?
David