- 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
- Add control:
$form->addUpload('image')->addRule(Form::MIME_TYPE, 'jen jpg', 'image/jpeg')
- Render control:
<input n:name="image">
- Click the image input and select non-jpeg file.
- Click form's submit button. No client-side validation is made, instead backend takes action.