-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃殌 Feature: Retrieve and limit total storage used #5955
Comments
@XaFigg If we just included a way to track total storage per bucket, and you used one bucket per person, would this partially solve your issues? I think this would be easiest, but I am also supportive of a proper, permission conscious way to count total storage used. Alternatively, Appwrite Functions triggered by storage events would work, too. Have a collection be auto updated by functions that tracks each user's files. If you see that there's significant friction in both these paths, we can decide how to fix the problem. Sometimes the solution is to add a more flexible way to write functions or queries in Storage to allow user implementation. Anyway, happy to hear further feedback from you an community. I'll keep a close eye on this issue! |
Hello @gewenyu99, What I'm looking for is a way to limit storage usage per user. It could be done via the first solution mentioned, by checking bucket usage. But I think that putting functions in the storage will allow the user to do as he likes. I'm using a translator, sorry if I'm not explicit enough. |
No problem. I feel like this should be done with functions one way or another. If we find out we can't it might be more of a problem with the way our function/events work. If you think about it:
I think if we build this into the bucket directly, it'll be less flexible than improving powerful features like functions to help you build custom logic. Again, if this doesn't work, let us know, we'll find another solution together. Cheers! |
Hello 馃槃 I think I'll do it this way, it seems like a good solution. On the other hand, I don't yet know how I can limit the total size, for example if the user uploads a file, he'll get an error saying he's already reached the storage limit. Thanks for your feedback ^^ |
You could have a function do this for you, like so:
|
Hello, |
That is true. There is an open issue about this: #2406 For now, you can manually execute the function from your client-side with the |
Yeah @stnguyen90 is working to fix that issue, I believe. 馃槄 Sorry about that. I know it's frustrating, we're trying to get it fixed. CC: @XaFigg |
馃敄 Feature description
Hello, I would like to propose a new feature 馃槃
The idea would be to be able to retrieve or limit the total storage used by a user, a team or simply the total storage that a bucket uses.
An example, for the user to retrieve their total storage usage:
Another example to retrieve the total storage usage of a bucket:
The administrator can limit from the appwrite interface, the use of total storage for each user/team/bucket.
馃帳 Pitch
For example, for a data hosting service, it would be important to be able to monitor the storage usage of each user/team/bucket and to be able to limit in order to avoid abuse.
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: