title: Zend Framework 2 - How to validate uploded files using input filter
body: <p>I am quite newbie in zend framework 2. I am not working with file uploading in a standard manner before in zend framework 2. I am in stuck to validate image file for size, extension etc in inputfilter.  Here is my validation code which is not working at all.</p>
  
  <pre><code>$inputFilter-&gt;add(
      array(
          'name' =&gt; 'WEB_LOGO',
          'required' =&gt; false,
          'validators' =&gt; array(
              array(
                  'name' =&gt; 'Zend\Validator\File\Size',
                  'options' =&gt; array(
                      'min' =&gt; 120,
                      'max' =&gt; 200000,
                      ),
                  'name' =&gt; 'Zend\Validator\File\Extension',
                  'options' =&gt; array(
                      'extension' =&gt; 'png',
                      ),
                  ),
              ),
          )
      );
  </code></pre>
  
  <p>The zend framework 2 file uploading process seems to me more complicated. Is it wise to upload file using raw php function?</p>
  
  <p>However, how can i validate image file easily in inputfilter and it will be great help for me if anyone guide me how to upload two or three file input easily in zend framework 2. </p>
  
  <p>Thanks for kind attention.</p>