Interact with uploaded file after form submission

Hello, how can I interact with file after the form, with uploaded field, has been submitted?
Solution
use the below function after creating the record (https://filamentphp.com/docs/3.x/panels/resources/creating-records#lifecycle-hooks)

    protected function afterCreate(): void
    {
        // Runs after the form fields are saved to the database.
    }


and following on after edit (https://filamentphp.com/docs/3.x/panels/resources/editing-records#lifecycle-hooks)

    protected function afterSave(): void
    {
        // Runs after the form fields are saved to the database.
    }
Was this page helpful?