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
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.
- 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...