© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
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
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Form builder - File fields?
FilamentFFilament / ❓┊help
3y ago
Pesting form builder with upload file
FilamentFFilament / ❓┊help
2y ago
form builder
FilamentFFilament / ❓┊help
2y ago
form builder
FilamentFFilament / ❓┊help
3y ago