Is it possible to execute an action for a FileUpload field on submit?

I need to generate image variants from one single source. Something like thumb, crop and original. I think I can archive this with an action that is executed when I submit the form. But I can't find how to do this in the documentation. If someone sends me the documentation link of how to execute an action for a field on submit, it would solve my problem.
2 Replies
Lara Zeus
Lara Zeus9mo ago
you can use the hooks https://filamentphp.com/docs/3.x/panels/resources/creating-records#lifecycle-hooks but I recommend that you use something like #awcodes-curator with Glider, it generate the thumbs on demand to save storage https://github.com/awcodes/filament-curator?tab=readme-ov-file#glider-blade-component
Mark Chaney
Mark Chaney9mo ago
You really should use the spatie file upload field for this. It’s made to do this
Want results from more Discord servers?
Add your server