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
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- I am using s3 for app storage but is it ...
_APP_STORAGE_DEVICE=s3 puts everything to the s3 storage but i need to be able to keep the function builds and site in the local and not waste the cloud storage...