hfs icon indicating copy to clipboard operation
hfs copied to clipboard

hope to set a limitation for user upload total size

Open dzw13579 opened this issue 2 years ago • 5 comments

Describe the solution you'd like for now there is not a limit setting for user upload total size, it's easy to let some bad guy sent a lot of file chock harddisk up. Please add this setting in new version, thank you so much!

dzw13579 avatar Jan 16 '23 09:01 dzw13579

to avoid that problem we need a limit like "minimum disk available", similarly to what we had in hfs2

image

rejetto avatar Jan 16 '23 10:01 rejetto

is that possible(and maybe, easy to achieve without lot of working) making the limitation separately for every single user instead of setting the minimum disk space ?

dzw13579 avatar Jan 16 '23 16:01 dzw13579

like user X can upload 1GB ?

rejetto avatar Jan 16 '23 17:01 rejetto

like user X can upload 1GB ?

yeah

dzw13579 avatar Jan 17 '23 01:01 dzw13579

this other sounds like a good idea for a plugin, with both the possibility to set a default limit and to override setting on a specific account

rejetto avatar Jan 17 '23 09:01 rejetto

@dzw13579 Hi, i made a plugin "upload-quota" here: https://github.com/damienzonly/upload-quota

let me know if it satisfies the requirement.

Note: this plugin needs at least the 0.53.0-beta8 release of HFS, so you'll need to wait a little bit more

damienzonly avatar May 30 '24 14:05 damienzonly

beta8 was released

rejetto avatar May 30 '24 22:05 rejetto

i guess this settles it

@damienzonly i suggest to post here https://github.com/rejetto/hfs/discussions/categories/show-and-tell

rejetto avatar Jun 01 '24 16:06 rejetto