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

netteForms.js: mimeType validator does not take action #173

Closed
dakur opened this issue Jan 11, 2018 · 1 comment
Closed

netteForms.js: mimeType validator does not take action #173

dakur opened this issue Jan 11, 2018 · 1 comment

Comments

@dakur
Copy link

@dakur dakur commented Jan 11, 2018

  • bug report? no
  • feature request? yes
  • version: 2.4

Description

Even that Nette\Forms\Helpers::exportRules() generates rule for client-side mime type verification, it is not implemented in netteForms.js.

Steps To Reproduce

  1. Add control: $form->addUpload('image')->addRule(Form::MIME_TYPE, 'jen jpg', 'image/jpeg')
  2. Render control: <input n:name="image">
  3. Click the image input and select non-jpeg file.
  4. Click form's submit button. No client-side validation is made, instead backend takes action.
@dg
Copy link
Member

@dg dg commented Jan 15, 2018

@dg dg closed this as completed in 306d429 Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants