Hi, i'm facing an issue regarding appwrite file permission, i have a web app that allows the user to download a file from the appwrite strorage, for that purpose i set up an api key with the permission to read the files and buckets, when trying to download a file, this error pops up: {"message":"The current user is not authorized to perform the requested action.","code":401,"type":"user_unauthorized","version":"1.4.9"} btw, when i'm signed-in into the appwrite, it downloads the file properly, but if i'm signed out (which should be the case for all users) i won't download and the above message appears FYI: the appwrite is installed within our VPS server
You can’t use an API key with the front-end SDK. You can grant access to anyone on the files, so that they don’t require being logged in
alright, thanks, it worked
[SOLVED] Not authorized to access files in buckets
Recommended threads
- Error When load the website
Hi, I am getting this error whenever I reload my website please help me, I am using react Error: ** GET https://cloud.appwrite.io/v1/account 401 (Unauthoriz...
- Query Appwrite
Hello, I have a question regarding Queries in Appwrite. If I have a string "YYYY-MM", how can I query the $createdAt column to match this filter?
- Different appwrite IDs are getting expos...
File_URL_FORMAT= https://cloud.appwrite.io/v1/storage/buckets/[BUCKET_ID]/files/[FILE_ID]/preview?project=[PROJECT_ID] I'm trying to access files in my web app...