Geralders
Geralders
FFilament
Created by Geralders on 1/24/2024 in #❓┊help
Form won't let me submit when only FileUpload is attached as an input
When i migrated to V3 a form i built with Filament Form Builder with only a FileUpload input wouldn't submit
14 replies
FFilament
Created by Geralders on 1/23/2024 in #❓┊help
Filament's FileUpload uploads strings of paths and not TemporaryFile in V3
public function form(Form $form): Form
{
return $form
->schema([
FileUpload::make('files')->multiple()->preserveFilenames()->required(),
TextInput::make('name')
])->statePath('data');
;
}
public function form(Form $form): Form
{
return $form
->schema([
FileUpload::make('files')->multiple()->preserveFilenames()->required(),
TextInput::make('name')
])->statePath('data');
;
}
This is my form method. this exact same one used to provide an array of TemporaryFile objects before i migrated to V3 from V2.
1 replies