
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
- How To Send Email Verification From Serv...
How can I send email verification from server action or component after sign up in next.js ? Is there any way ?
- x-appwrite-user-jwt missing
Even for logged in users I can't see "x-appwrite-user-jwt" or "x-appwrite-user-id" in headers of an appwrite function. I'm trying to send "x-appwrite-user-id" m...
- ATTRIBUTE NOT SHOWING DELETE
Hi, I'm trying to delete an attribute in my collection but it won't delete, It's not even showing the delete when I click on the hamburger icon, Its showing onl...
