Interact with uploaded file after form submission
Hello, how can I interact with file after the form, with uploaded field, has been submitted?
Solution:Jump to solution
use the below function after creating the record (https://filamentphp.com/docs/3.x/panels/resources/creating-records#lifecycle-hooks)
```php
protected function afterCreate(): void
{...
2 Replies
Solution
use the below function after creating the record (https://filamentphp.com/docs/3.x/panels/resources/creating-records#lifecycle-hooks)
and following on after edit (https://filamentphp.com/docs/3.x/panels/resources/editing-records#lifecycle-hooks)
Thank you!