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
class CreateCustomer extends CreateRecord
{
    protected static string $resource = CustomerResource::class;
}


this is the form in resource class
Select::make('group_id')->translateLabel()
      ->options(Group::pluck('name', 'id'))
      ->searchable()
      ->hiddenOn(['edit'])
      ->required(),
TextInput::make('phone')->translateLabel()
       ->required()
       ->maxLength(191),
TextInput::make('email')->translateLabel()
      ->email()
      ->maxLength(191),
FileUpload::make('identity'),
Solution
I found a solution, just use
$this->form->getRawState()
Was this page helpful?