F
Filamentβ€’16mo ago
Skrypt

filament v3: file upload on custom page

Hi guys, so I have this custom page which implements HasForms and uses the InteractsWithForms trait. I've added a File Upload field to the schema, but anytime I upload an image, I get this error:
Property type not supported in Livewire for property: [null]
Property type not supported in Livewire for property: [null]
Anyone encountered this error in V3?
5 Replies
Skrypt
SkryptOPβ€’16mo ago
This happens only if I try to store it in a variable of it's own, like:
public $photo
public $photo
If I use
public $data;
public $data;
and then
FileUpload::make('data.photo')
FileUpload::make('data.photo')
then it works.
Saade
Saadeβ€’16mo ago
make sure to call $this->form->fill() on mount()
Skrypt
SkryptOPβ€’16mo ago
awesome, that worked πŸ™‚ thanks
Troner
Tronerβ€’14mo ago
Thank you guys i had the same problem
fagner
fagnerβ€’8mo ago
updateProperty
Want results from more Discord servers?
Add your server