F
Filament11mo ago
lxbln

Spatie Media Library: Attaching the same image to many posts

I am just starting with filament and I wanted to use Spatie Media Library. What I do not understand is if I can reuse an already uploaded file. Lets say I have a table with posts and each post has a preview-image. The upload field looks like this:
SpatieMediaLibraryFileUpload::make('Preview Image')
->collection('preview-images')
SpatieMediaLibraryFileUpload::make('Preview Image')
->collection('preview-images')
But what if many posts will have the same image ? Do I need to upload the same image for every post ? The upload field does not allow me to choose an existing one and attach it to my post. thanks
2 Replies
awcodes
awcodes11mo ago
Not possible natively. If you want to stick with spatie then I’d recommend #ralphjsmit-media-library-manager
lxbln
lxblnOP11mo ago
thanks ! I am even not sure anymore if I would want this behaviour.
Want results from more Discord servers?
Add your server