Issue Type: Bug Created: 2012-05-29T16:00:10.000+0000 Last Updated: 2012-10-08T20:15:15.000+0000 Status: Closed Fix version(s): Reporter: Michael Ben-Nes (mbn_18) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend\Validator
Related issues: Attachments:
Whatever I do I get no error nor object to work with. Other validators work as expected.
At the Zend\Validator\File\Upload the construct suppose to catch $_FILES in no file list was passed. Seems like it dont.
<pre class="highlight"> # from the form object $this->add($factory->createElement(array( 'name' => 'resource_file', 'attributes' => array( 'label' => 'File:', 'type' => 'file', ), ))); <pre class="highlight"> # from the filter (one of the variation I tried ) $this->add($factory->createInput(array( 'name' => 'resource_file', 'required' => true, 'validators' => array( array( 'name' => 'File\Upload', 'options' => array ( 'files' => $_FILES, ), 'files' => $_FILES, ), ), )));
Posted by Ralph Schindler (ralph) on 2012-10-08T20:15:15.000+0000
This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit: https://github.com/zendframework/zf2/issues/2486
Have you found an issue?
See the Overview section for more details.