
hey there ,
i'm , getting this error when try to upload a image to bucket in appwrite cloud
AppwriteException: The current user is not authorized to perform the requested action.
if i'm right we have to pass api key also . but i didn't see any mention of it in docs (maybe i can be wrong).
I am using web sdk , and nextjs with ts.
here's live url : https://host-thing.vercel.app/
here's github link : https://github.com/anuragts/host-thing/blob/main/src/pages/components/Appwrite.tsx

You should NOT be using an API key client side as that would expose it to end users.
As for your problem, what permissions did you set on the bucket?

solved , added permission for guests.

[SOLVED] Authorisation issue in appwrite cloud
Recommended threads
- Webhooks not working?
I have this webhook in appwrite but unfortunately this webhook isn't being triggered whenever I change something in the database. I've put the right databaseID ...
- Request: When Will Appwrite Sites Waitli...
Hey team! π I recently joined the waitlist for Appwrite Sites on Cloud and got the confirmation email that says: "You've successfully joined the Sites waitli...
- AVIF file format as default
In appwrite, is it possible that whenever a user uploads an image it gets converted to a specific format for eg AVIF always? I know I can use cloud functions bu...
