
I want to be able to add a tag of say "user X' to a file such that i can do a listfiles and only get the files with user X tag? I'm confused how to use permission to achieve this or do I just create different buckets?

To keep tracking of your file the best workaround is to create collection that will have all the details, for example
- file_id
- user_id
- ... Then update it after each upload

I referring to files like a pdf. I thought they can only go in storage?

You always put the file inside a bucket using the storage module But if you want to track each file meta_data you will need to create an accompanied collection

ah, I see, so as I upload a file, I simultaneously update the collection?

Yes

And you can use events for that Creating a function that will get triggered on each file upload Then you can easily update the collection

Okay, I'd do so. Thanks for your advice
Recommended threads
- File tokens regenerate each page reload
Hello, on appwrite 1.7.4, when I create a file token via the API Tokens(appwriteAdminClient)#createFileToken I get a secret, then when I check in the console t...
- CSV Import Shows Success but Data Not Ap...
I tried importing a CSV file into my PRODUCTS collection. The dashboard shows the message “Import to PRODUCTS completed successfully,” but no data appears in th...
- [FEATURE] Better usage analytics for app...
Recently, i've gotten **73** emails from appwrite regarding excesive GBHours usage. I've almost hit the limit of 1000 and it is really hard to track down which ...
