title: Zend Form : Call to undefined method Zend\InputFilter\InputFilter::getFilterChain()
body: <p>I'm trying to upload an image with Zend Form. As we need it to move the image, I want to add a filter to do the job. But I can't use the getInputFilterChain(), I keep having this fatal error :  <code>Call to undefined method Zend\InputFilter\InputFilter::getFilterChain()</code>. What am I missing here ? </p>
  
  <p>I'm able to get the file information in $prg array. And as I looked on <a href="https://framework.zend.com/manual/2.4/en/modules/zend.mvc.plugins.html" rel="nofollow">https://framework.zend.com/manual/2.4/en/modules/zend.mvc.plugins.html</a>, this method is supposed to exist here, no ?</p>
  
  <p>And I get the same error if I use this in my Form.php file. </p>
  
  <p>Thank you in advance for your time!</p>
  
  <p>My controller action : </p>
  
  <pre><code>public function signinAction()
  {
      $this-&gt;em = $this-&gt;getServiceLocator()-&gt;get('doctrine.entitymanager.orm_default');
  
      $form = new SignupForm($this-&gt;em);
  
      $form-&gt;getInputFilter()-&gt;getFilterChain()-&gt;attach(
          new Zend\Filter\File\RenameUpload(array(
              'target'    =&gt; './data/tmpuploads/file',
              'randomize' =&gt; true,
          ))
      );
  
      $model = new ViewModel(array("form" =&gt; $form));
  
  
      $url = $this-&gt;url()-&gt;fromRoute("signin");
      $prg = $this-&gt;fileprg($form, $url, true);
  
      if($prg instanceof \Zend\Http\PhpEnvironment\Response){       
          return $prg;
      }
      else if($prg === false){
         return $model;
      }
  
      //other stuff
      ...
  }
  </code></pre>