
I am trying to get image preview but I get an empty object.
TypeScript
export const getFile = async (fileId) => {
return await storage.getFilePreview(
process.env.BUCKET_ID,
fileId
)
}
this is how i am getting the image preview. also can u pls tell me how can i get the blob as well.
i read the documentation and also used help from AI, but no good..
thx
TL;DR
Issue: Developer is trying to get an image preview using the provided code but it returns an empty object. They are also requesting information on how to get the blob.
Solution: The issue could be related to how `storage.getFilePreview()` is handling the file. Check the functionality and ensure the correct fileId and BUCKET_ID are being used. To get the blob, consider adapting the provided code to retrieve the blob directly or explore additional methods within the storage API.Recommended threads
- Subdomain failed verification
So I wanted to do a custom subdomain, because local storage doesn't work for me, but I've tried it a long time ago, it didn't work for me, and now I'm trying ag...
- Sites 30MB limit from GitHub
I’m deploying a site from github as Other type on the Hobby plan. It is actually a Flutter web app but it’s in a subdirectory with the root being an html landin...
- [bug] API response is good but UI don't ...
Hi guys! When i got my object, it have billingInfo relation, in the web ui i just got pading state, and the row shows object is null, but when i work whit this...
