Skip to content

[Bug] Wrong error message on one filetype for FileUpload  #58

Open
@krikru95

Description

@krikru95

Is there an existing issue for this?

  • I have searched the existing issues

Have you updated FilePond and its plugins?

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions