ZF2-327: The Upload validator might be broken

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

  • form
  • validator
  • zf2

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

    'name'  => 'resource_file',
    'attributes' => array(
        'label' => 'File:',
        'type'  => 'file',

<pre class="highlight">
# from the filter (one of the variation I tried )

    'name'       => 'resource_file',
    'required'   => true,
    'validators' => 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:

Have you found an issue?

See the Overview section for more details.


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

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