F
Filament11mo ago
toeknee

Form Builder and file uploads

How are we handling nested state path form builder uploads? For example we have statePath('files') then a shcema with several files within. The render spits it's dummy with
$this->form->fill(is_countable($data) && count($data) > 0 ? $data : null);
$this->form->fill(is_countable($data) && count($data) > 0 ? $data : null);
Saying:
Filament\Forms\Components\BaseFileUpload::Filament\Forms\Components\{closure}(): Argument #1 ($file) must be of type string, array given
Filament\Forms\Components\BaseFileUpload::Filament\Forms\Components\{closure}(): Argument #1 ($file) must be of type string, array given
because we are not casting it on the model
0 Replies
No replies yetBe the first to reply to this messageJoin