The Milkman
The Milkman
FFilament
Created by The Milkman on 8/2/2024 in #❓┊help
Why does FileUpload not respect ->rules() ?
It seems that when specifying rules to a FileUpload field, it is not validated. Is that expected behaviour?
FileUpload::make('csv_file')
->label(__('CSV File'))
->rules(['mimes:csv,txt']) // This allows images just fine
FileUpload::make('csv_file')
->label(__('CSV File'))
->rules(['mimes:csv,txt']) // This allows images just fine
I know I probably should use ->acceptedFileTypes() for this, but I actually want to validate the input on WOFF and WOFF2 font files. Since acceptedFileTypes uses the front-end validator of Filepond, I can't use this, because browsers cannot resolve the correct mimetypes for these files... So, I need to do some serverside validation. But how?
10 replies
FFilament
Created by The Milkman on 4/24/2023 in #❓┊help
Auto-jump to next step in Wizard
2 replies
FFilament
Created by The Milkman on 4/19/2023 in #❓┊help
Set MorphToSelect to a value in mount()
3 replies
FFilament
Created by The Milkman on 4/13/2023 in #❓┊help
Related Select-field behaving weirdly when ->searchable() is added
2 replies
FFilament
Created by The Milkman on 4/5/2023 in #❓┊help
Trigger a single action on another place (in the table-header)
4 replies