filepond-plugin-file-validate-type
filepond-plugin-file-validate-type copied to clipboard
[Bug] Wrong error message on one filetype for FileUpload
Is there an existing issue for this?
- [X] I have searched the existing issues
Have you updated FilePond and its plugins?
- [X] I have updated FilePond and its plugins
Describe the bug
We are using Filepond through laravel filament and if we configure a FileUpload Field with only one allowed mimetype and upload a not allowed file type we get a wrong error message.
Configuration: ->acceptedFileTypes(['video/mp4]);
Error Message: "Erwartet oder video/mp4", the correct message would be "Erwartet video/mp4", without the "oder" (or).
I created an issue for filament and they linked to this plugin.
Reproduction
-
Configure a FileUpload Field in a form with filament -
Allow only on FileType -
Upload one not allowed file
Environment
- Device:
- OS:
- Browser: all
Thanks for reporting, will look into it.