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
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...