Closed egyjs closed 2 years ago
Unfortunately this is a Livewire limitation that I am unable to fix at the moment. I am in contact with Caleb and I have proposed a solution for Livewire v3. Many methods on JS-based form fields are not reactive at the moment.
As a quick solution, you can skip acceptedFileTypes()
and use rules([''])
to apply Laravel Validation rules to the field (mime type check?), which won't be passed onto Filepond. This will give you backend validation but nothing on the frontend.
Package
filament/filament
Package Version
v2.16.32
Laravel Version
v9.35.1
Livewire Version
No response
PHP Version
V8.1
Problem description
i have an issue my code:
also I have a
reactive
Radio Field, the issue is that: when i change the value of the
radio
Field, it wont change theacceptedFileTypes
of thefileUpload
FieldExpected behavior
when i change the value of the
radio
Field, it wont change theacceptedFileTypes
of thefileUpload
FieldSteps to reproduce
check file https://github.com/filamentphp/filament/blob/43e3337c72e5243f008e60a324122961261ed6dd/packages/forms/resources/views/components/file-upload.blade.php#L65
Reproduction repository
none
Relevant log output
No response