ZF-12078: Zend_Form_Element_File not returning validators

Issue Type: Bug Created: 2012-03-01T19:10:33.000+0000 Last Updated: 2012-03-01T20:26:12.000+0000 Status: Open Fix version(s): Reporter: Ricardo Buquet (enkil2003) Assignee: Christian Albrecht (alab) Tags: - Zend_File_Transfer

  • Zend_Form
  • validating

Related issues: Attachments:


When I retrieve the validators from a file element nothing is returned But! if i call the getTransferAdapter for the element, and call on it the getValidators I do get the validators


<pre class="highlight">
$file = new Zend_Form_Element_File('image');
$file->addValidator('Count', false, 1);
print_r($file->getValidators()); // nothing is retrieved
$adapter = $file->getTransferAdapter();
print_r($adapter->getValidators()); // i get my validators


Posted by Frank Br├╝ckner (frosch) on 2012-03-01T20:25:07.000+0000

  • Code tags added.
  • Priority downgraded because a workaround exists.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.