Skip to content

Validator: method validatePattern() for UploadControl multiple#192

Merged
dg merged 5 commits into
nette:masterfrom
h4kuna:multiupload-pattern
Sep 30, 2018
Merged

Validator: method validatePattern() for UploadControl multiple#192
dg merged 5 commits into
nette:masterfrom
h4kuna:multiupload-pattern

Conversation

@h4kuna

@h4kuna h4kuna commented Aug 29, 2018

Copy link
Copy Markdown
Contributor

The method validatePattern accepts $control where value can be array by UploadControl (multiple). If one file does not matched method return false.

I extend the test method because two classes MockUploadControl are not allowed.

@dg dg merged commit a2da720 into nette:master Sep 30, 2018
@dg

dg commented Sep 30, 2018

Copy link
Copy Markdown
Member

Thanks!

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

Successfully merging this pull request may close these issues.

Multiupload rule Form::PATTERN

3 participants