Replies: 1 comment
-
So added curator side by side with spatie media library and I think I am slowly going to move some or all my models over to using curator, but certainly for pages but possibly for everything. I'd still be interested in seeing how you could do this with Spatie media library but I suspect it will be a tough call as the polymorphic relationship makes it awkward. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do I add images to a block in either spatie media library (preferred) or curator?
My project is currently using Spatie Media library, I have extended the block class and I can upload and store the images but they get attached to the page class, and if you add multiple block instances with an image then only the last once is saved an that appears for all block images.
I tested using the default Filament file uploader and that saves the file to the specified disk and adds the name to the block but I need something more elegant.
I need the page to save all images and add the media ID to the pages blocks data as a property so I can reference the correct image.
I have added curator alongside Spatie media for now and I will evaluate it but I'll have a lot of code to rewrite if I need to switch.
Beta Was this translation helpful? Give feedback.
All reactions