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
- How to Display File in Web?
I'm trying to use Appwrite's Storage to store images and display them in my app, however when I use the `getFileView`, `getFileDownload` or `getFilePreview` met...
- Project Paused Despite Daily Active Usag...
I noticed that my project was automatically **paused**, even though it is actively being used. The project is an **attendance application** that is used daily b...
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...