How to show thumbnails on SpatieMediaLibraryFileUpload field?
Everything is working fine. I installed Spatie Media Library, imported the field, and I'm currently using it. I have it set up for multiple images.
SpatieMediaLibraryFileUpload::make('Imagenes')
->columnSpan('full')
->multiple()
->conversion('thumb')
->enableReordering(),
However, when I see the resource, it does show the the images, but it shows them as a list, and not the thumbnails. How can I do that? I understand SpatieMediaLibraryFileUpload is for uploads, but is there an other field to actually show images? Or can I use SpatieMediaLibraryFileUpload to display the images in some way?
3 Replies
does it show the full size of the image?
It shows just the name of the image, and the size is the size of the field, in this case I'm using columnSpan full, so it basically just shows text.
I found the answer! https://filamentphp.com/tricks/file-upload-previews-not-loading
Filament
File upload previews not loading by Dan Harrin - Tricks - Filament
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.