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

Error template nicer label for only one type #35

Open
719media opened this issue Sep 15, 2020 · 1 comment
Open

Error template nicer label for only one type #35

719media opened this issue Sep 15, 2020 · 1 comment

Comments

@719media
Copy link

If you only accept one type, the fileValidateTypeLabelExpectedTypes template looks bad

fileValidateTypeLabelExpectedTypes: [
  'Expects {allButLastType} or {lastType}',
  Type.STRING
],

If you only have one type, you wind up with Expects or text/csv for example

@rikschennink
Copy link
Collaborator

You can edit the template see docs:
https://pqina.nl/filepond/docs/patterns/plugins/file-validate-type/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants