MyFrend
MyFrend
FFilament
Created by MyFrend on 12/7/2023 in #❓┊help
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..
2 replies
FFilament
Created by MyFrend on 12/7/2023 in #❓┊help
Set image to custom field
No description
2 replies