perryflynn / webshelf-file-explorer

A file explorer written in ExtJS and PHP
GNU General Public License v3.0
10 stars 4 forks source link

Configurable max disk space #73

Open kordianbruck opened 10 years ago

kordianbruck commented 10 years ago

Let an admin set a maximum disk space users are allowed to use. When exceeding this limit, prevent them from uploading new files.

perryflynn commented 10 years ago

There is no feature to calculate the current total file size. This must be done by a cronjob or so. Calculating the total size on demand would be difficult for shares that contains several 1000 files.

Have no idea to do this with live-data without lags on upload process.

kordianbruck commented 10 years ago

Ah, I see. There are no refrences in a database or similar that why it might get hard. If we would add the uploaded files to a list in the DB, then calculating the size would be a simple query. But creating a DB just for this might be overkill for such a little feature improvement.

Might as well close this issue right now as not relevant / wontfix.