Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 tasks done
krikru95 opened this issue Apr 17, 2023 · 1 comment
Open
2 tasks done

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

krikru95 opened this issue Apr 17, 2023 · 1 comment
Labels

Comments

@krikru95
Copy link

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
@krikru95 krikru95 added the bug label Apr 17, 2023
@rikschennink
Copy link
Collaborator

Thanks for reporting, will look into it.

@rikschennink rikschennink transferred this issue from pqina/filepond Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants