F
Filament3mo 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
Vp3mo 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
ericmpOP3mo 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
ericmpOP3mo ago
im missing packages or what?
No description
ericmp
ericmpOP3mo 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
ericmpOP3mo ago
bump
toeknee
toeknee3mo ago
looks like you having run npm run build for the cropper like? maybe also php artisan:filament upgrade ?
ericmp
ericmpOP3mo ago
i already did both but no luck
toeknee
toeknee3mo ago
Will need to reach out to the original devs
ericmp
ericmpOP2mo ago
yeah, thanks for the help anyways
Want results from more Discord servers?
Add your server