F
Filament8mo ago
Rahul

Previewing Images from Database in File Upload Section

I have an image URL stored in my database that was inserted directly, but I want to preview that image in my file upload section. Is there any way to do so?
5 Replies
Rahul
RahulOP8mo ago
is there any way to preview the image from the link ???
Dennis Koch
Dennis Koch8mo ago
How is the image stored? If it follows the conventions that Storage facade is using, it should work.
Rahul
RahulOP8mo ago
I have a scenario like this: I have an image field in my database where some of the image links come from an API and some links come from the file upload means, which I created through the resources. I can preview the image that is uploaded using file upload, but I am unable to preview the image that is coming from the API. However, in my table's image column, I can see all the images that come from the API and also those uploaded using file upload. So How can I preview the image that comes from the API ??
Dennis Koch
Dennis Koch8mo ago
If it's a full URL I don't think that might be possible with the FileUpload component
Rahul
RahulOP8mo ago
Yeah, it's a full URL. Okay, thank you for your response.
Want results from more Discord servers?
Add your server