F
Filament2mo ago
ericmp

How To Apply `->imageEditor` on FileUpload v2?

I want the user to be able to use the image editor when uploading an image. But in v2 is not available. What would u do to achieve to let use the image editor? Update to v3? Or is there a way i dont know that this may be achieved in v2? like somehow creating a custom component like v3? but im not sure if that can be done.
Forms\Components\SpatieMediaLibraryFileUpload::make('title')
->avatar()
->maxSize(1024)
->imageEditor() // not available on v2
Forms\Components\SpatieMediaLibraryFileUpload::make('title')
->avatar()
->maxSize(1024)
->imageEditor() // not available on v2
9 Replies
Vp
Vp2mo ago
Better to upgrade to v3.. or you can search some plugin here which may have https://v2.filamentphp.com/plugins
Filament
Plugins - Filament
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
ericmp
ericmpOP2mo ago
yeah i want to update to v3, but is not possible now :/ i searched in the plugins - i tried the croppie one and the image cropper, but i cant make them to work idk why now i figured out there are errors
ericmp
ericmpOP2mo ago
im missing packages or what?
No description
ericmp
ericmpOP2mo ago
the docs of the plugin doesnt say anything about publishing anything https://v2.filamentphp.com/plugins/croppie
Filament
Croppie by Nuhel - Plugins - Filament
Image Cropper Plugin Croppie Js Support For Filament
ericmp
ericmpOP2mo ago
bump
toeknee
toeknee5w ago
looks like you having run npm run build for the cropper like? maybe also php artisan:filament upgrade ?
ericmp
ericmpOP5w ago
i already did both but no luck
toeknee
toeknee5w ago
Will need to reach out to the original devs
ericmp
ericmpOP5w ago
yeah, thanks for the help anyways
Want results from more Discord servers?
Add your server