Is this the right approach to begin with? I want to store all of my users Audio Files in a Shared Bucket. Does this make sense, or should I create a bucket for each of my users individually?
I see with file security by default the user that created the file has permission to READ, UPDATE, DELETE. Now How can I fetch all of the documents a user has permission to access?
If a user tries to request all the files in the Bucket, only the ones it has access to will be returned. If you want to get it from somewhere else, I don’t believe there’s currently any way, but I believe I’ve seen some recent discussion about implementing a way to get a list of things (presumably whether Database Documents or Storage Files) based on it’s Permissions.
As for who created a file, to my knowledge, there’s currently no way to find that
The best option would be to have a Collection and keep track of who uploaded what there, but you’d have to update that separately on upload
Recommended threads
- Project paused despite active use — rest...
Hey team! My Appwrite Cloud project (685579e5000d78e67009) has been marked as paused due to inactivity, but it's actively used in production. I clicked the Rest...
- bulk actions
Are bulk actions restricted from web sdk? I can't seem to be able to use `upsertRows` method for **tablesDB**
- Framework categorization for Sites
Hello, I want to deploy my web app via Appwrite SItes. My web app is vite+reactjs. In the Appwrite docs, it creates a vite+react app, and chooses React from the...