Skip to content

Conversation

@h4kuna
Copy link
Contributor

@h4kuna h4kuna commented Feb 23, 2018

  • bug fix? yes issue
  • new feature? no
  • BC break? no
  • doc PR: nette/docs#??? not necessary

Validator accept pattern for FileUpload::getName() instance of FileUplaod::__toString(), where is tmpName.

$form->addUpload('csv') ->addRule($form::MIME_TYPE, 'Foo', 'text/*') ->addRule($form::PATTERN, 'Message', '.*\.csv'); 
@dg
Copy link
Member

dg commented Feb 25, 2018

Thanks.

@dg dg merged commit 29944fd into nette:master Feb 25, 2018
renekliment added a commit to renekliment/forms that referenced this pull request Jul 25, 2018
…5 File API * this is a complement to nette#175 so validating file names via pattern works on both client and server
dg pushed a commit that referenced this pull request Jul 25, 2018
…5 File API (#186) * this is a complement to #175 so validating file names via pattern works on both client and server
dg pushed a commit that referenced this pull request Jul 25, 2018
…5 File API (#186) * this is a complement to #175 so validating file names via pattern works on both client and server
renekliment added a commit to renekliment/nette-docs that referenced this pull request Aug 22, 2018
dg pushed a commit to nette/docs that referenced this pull request Aug 22, 2018
dg pushed a commit to nette/docs that referenced this pull request Aug 22, 2018
dg pushed a commit to nette/docs that referenced this pull request Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants