How to create a solution that limits user storage in an app?
<p>I can't figure out a good solution for limiting the storage amount a user may access with his files.</p>

<p>In the application users are allowed to upload a limit amount of files. The limitation is based on total file size. I.e. a user might be allowed to store 50 Mb on the server.</p>

<p>This number is stored in a database so that it can be easily increased/decreased.</p>

<p>The language used is PHP, but I guess the solution isn't depended on the scripting language.</p>

<p>Very sorry if the question is unclear. I don't really know what to ask for more than a strategy to implement.</p>

<p>Thanks!</p>
