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
- Why does this happen?
`AppwriteException: general_argument_invalid, Invalid `secret` param: Value must be a valid string and at least 1 chars and no longer than 256 chars (400)` the...
- How to properly implement custom domain?...
- Site deployment does not work.
I can change a file, deploy, change does not take effect. Delete file in repo, push changes,deploy. Old file remains undeleted Duplicate file, rename it, push,...