Back
Image view giving 404 when mode=admin not added to the image url although the user has permission
- 0
- Web
- Storage
if i use this url : {baseUrl}/v1/storage/buckets/{bucketId}/files/{fileId}/view?project={projectId} i get this message error:
TypeScript
"message": "The requested file could not be found.",
"code": 404,
"type": "storage_file_not_found",
"version": "1.4.13"
}```
but if i use this url {baseUrl}/v1/storage/buckets/{bucketId}/files/{fileId}/view?project={projectId}&mode=admin
the image gets rendered correctly
TL;DR
Developers are facing an issue where an image view gives a 404 error when the "mode=admin" parameter is not added to the image URL, even though the user has the necessary permission. The URL format is "{baseUrl}/v1/storage/buckets/{bucketId}/files/{fileId}/view?project={projectId}". When this URL is used without the "mode=admin" parameter, the error "The requested file could not be found" with code 404 and type "storage_file_not_found" is received. However, when the "mode=admin" parameter is added to the URL, the image is rendered correctly.Are you using this URL in the browser address bar or in an img element?
i tired it in both the img tag and the the browser address bar
but eventually i want to use it as an image element src
Recommended threads
- HTTP Error 500 ''
Hello to everyone, I'm a Flutter developer and actually I'm developing an app using Appwrite.. during my tests and also massive ones I've noticed something we...
- Inviting members while SMTP is disabled ...
Issue: https://github.com/appwrite/console/issues/3125 PR: https://github.com/appwrite/console/pull/3126
- Appwrite Sites: ERR_TOO_MANY_REDIRECTS o...
So, my domain was working perfectly fine with Vercel. I was using cloudflare CDN (still am) but CNAME was DNS-only. I switched over to appwrite, CNAME is still ...