F
Filament12mo ago
MyFrend

access TemporaryFileUpload on different field

I have a fileupload field where I upload an image what I want to reuse on a different field? I am here..
FileUpload::make('image')
->label('Afbeelding')
->disk('public')
->directory('img/employees')
->image() ->afterStateUpdated(fn ($state) => dd($state))
->required(),
FileUpload::make('image')
->label('Afbeelding')
->disk('public')
->directory('img/employees')
->image() ->afterStateUpdated(fn ($state) => dd($state))
->required(),
the $state returns a TemporaryFileUpload but I dont know how to access the file for the next field..
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server