© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
bwubs

FileUpload validation message

I have a file upload that works, but when a file is uploaded that is too big, I get a validation error (as expected) but I'm unable to change the content of the message.

It now shows the full path to the FileUpload field in the form, but I just want it to show the label of the input field. I've tried it with overwriting the
->validationMessages(['max' => ...])
->validationMessages(['max' => ...])
or with
->validationAttribute(__('Document'))
->validationAttribute(__('Document'))
. But none works.

The Livewire temporary file upload gives this error, but I'm unable to change the error message inside of filament. Am I missing something?
image.png
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 Validation Messages
FilamentFFilament / ❓┊help
15mo ago
FileUpload validation not working
FilamentFFilament / ❓┊help
15mo ago
Validation message
FilamentFFilament / ❓┊help
3y ago