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' => ...]) or with ->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
Was this page helpful?