filepond-plugin-file-validate-type icon indicating copy to clipboard operation
filepond-plugin-file-validate-type copied to clipboard

[Bug] Wrong error message on one filetype for FileUpload

Open krikru95 opened this issue 2 years ago • 6 comments

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

  1. Configure a FileUpload Field in a form with filament
    
  2. Allow only on FileType
    
  3. Upload one not allowed file
    

Environment

- Device:
- OS:
- Browser: all

krikru95 avatar Apr 17 '23 08:04 krikru95

Thanks for reporting, will look into it.

rikschennink avatar Apr 19 '23 09:04 rikschennink