maintain a table for storing username, password, the amout of storage to be used by the end user and the amount of storage he had used already.....
maintain a seperate folder and try giving options to upload the images and files.....
find the storage capacity used by the folder and do the calculations.........
it seems that u r new to this.......