displaying an image by the _storage id
Is it possible to display an image just using the _storage id ?
For now i've just done it by getting the url using ctx.storage.getUrl() and passing that along with the queried data, and then exporting a type like DataWithThumbnail and using that in the frontend.
Just wondering, if there is a reason to why i wouldn't just get the image with the storage id in the front end, which is already stored on the object.
1 Reply
You can pass around & store the url if you want full access to anyone. You could also have an httpAction so you could make a url where you just pass in the storage id and it serves the image
The url from getUrl is basically that already iirc