Rank 3: Container
Hi, I was looking at the docs and the discord community and found that the storage api does not allow for a file update. So i was wondering how would i go about updating, lets say, a profile image. As per previous solutions, i can create a file, delete the old one and update the id. But doesn't this allow the frontend user to create as many files as they want?
What i was doing right now was using functions when a user creates a new account to generate a profile image and granting update and read permission to the particular user so that they can update and read that file later but due to update file api limitation i dont think that idea would work anymore.
Do i have to create another function to handle user profile image uploads because i dont want to allow users to create any file they want directly to the storage bucket.
Any help pointing in the right direction would be nice. Thanks!