FilamentF
Filament8mo ago
Wiebe

afterStateUpdated not called in fileupload

i'm trying to use the afterStateUpdated on a fileupload in an action but its never called.

FileUpload::make('file')
                       
                          ->required()
                    ->visibility('private')
                          ->storeFiles(false)
                       
                    ->afterStateUpdated(function (FileUpload $component, Component $livewire, Set $set, ?TemporaryUploadedFile $state) {
                        dd($state);
                    }),
Was this page helpful?