I am curently working on a file-sharing application which allows regsitered users to upload files onto the server.
Information about the files are stored in a database.
The problem I am having is stopping a file from being uploaded if the user has reached their upload limit. The users table in the database contains a set amount of space for each user. How can I ensure that they canot upload a file if they will go over their limit?
I would even be happy if someone could show me how I could simply delete the file after upload if the limit is reached.
Thanks for the help.
