Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opt-in feature to set quota limits for file upload storage #16

Open
caycaycarly opened this issue Oct 28, 2019 · 1 comment
Open

Opt-in feature to set quota limits for file upload storage #16

caycaycarly opened this issue Oct 28, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@caycaycarly
Copy link

In some scenarios, it would be useful to set the limit for the size of the directory storing the file uploads. Even better if it could be done via the config file. Example, when a user wants to not store more than 20GB of files on his server, he can simply set the config file as follows :

# Max allowed size for file uploads, in bytes
max_filesize = 10000000
# Max allowed size for file uploads directory, in gigabytes (set value to -1 for no limit)
max_filedir = 20

Filite would disable the file upload feature when the size of the directory reaches 20GB, and the admin would be notified in some way.

@raftario raftario added the enhancement New feature or request label Oct 28, 2019
@raftario
Copy link
Owner

That's not a feature I plan to prioritize, but if anyone wants to open a PR for it feel free!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants