How can I get the uploaded file before saving data
Is there a way to get the uploaded file before saving data to the database in CreateCustomer class that extends CreateRecord
this is the form in resource class
6 Replies
I used to catch the data before save and do my customization, I can get all the data of the form fields from $data parameter, but the file upload field data not found in the $data parameter in this function
Customizing data before saving
what do you need to do to the file before saving data to the database?
I have conditions and based on these conditions I store the data either to the actual table or to another table with the uploaded files
I also tried and the same thing, I can get all the data of the form fields from $data parameter, but the file upload field data not found in the $data parameter
https://filamentphp.com/docs/3.x/panels/resources/creating-records#customizing-the-creation-process
Solution
I found a solution, just use