Interact with uploaded file after form submission

Hello, how can I interact with file after the form, with uploaded field, has been submitted?
2 Replies
Solution
Tieme
Tieme4mo ago
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.
}
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.
}
protected function afterSave(): void
{
// Runs after the form fields are saved to the database.
}
spacedev
spacedev4mo ago
Thank you!