© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•15mo ago•
4 replies
garethfrost

FileUpload validation not working

Hey,

I have a wizard set up with skippable steps, in one of the steps i have a FileUpload component which has minFiles(1). When I fill out the form I am able to save without a file added and no validation errors throw.

I've tried making the wizard not skippable but that didn't work, I have tried required() and the asterisk shows but again I can save without any validation errors throwing. I have also tried custom rules and using beforeValidation on the wizard step but neither worked either.

This is my code:
Components\FileUpload::make('uploads')
                                ->disk('assets')
                                ->acceptedFileTypes(['application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'image/jpeg', 'image/png'])
                                ->multiple()
                                ->downloadable()
                                ->storeFileNamesIn('uploads')
                                ->directory('uploads')
                                ->minFiles(1),
Components\FileUpload::make('uploads')
                                ->disk('assets')
                                ->acceptedFileTypes(['application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'image/jpeg', 'image/png'])
                                ->multiple()
                                ->downloadable()
                                ->storeFileNamesIn('uploads')
                                ->directory('uploads')
                                ->minFiles(1),
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

FileUpload max size validation isnt working
FilamentFFilament / ❓┊help
15mo ago
fileupload not working
FilamentFFilament / ❓┊help
2y ago
FileUpload Validation Messages
FilamentFFilament / ❓┊help
15mo ago
FileUpload validation message
FilamentFFilament / ❓┊help
2y ago