title: Error While Uploading a file in zend framework2
body: <p>I have created a form with a file upload fields and tried to upload the file as follows:</p>
  
  <pre><code>    $adapter = new \Zend\File\Transfer\Transfer();
      $adapter-&gt;addValidator(‘Count’,false, array(‘min’=&gt;1, ‘max’=&gt;3))
      -&gt;addValidator(‘Size’,false,array(‘max’ =&gt; 10000))
      -&gt;addValidator(‘Extension’,false,array(‘extension’ =&gt; ‘txt’,’case’ =&gt; true));
  
      $adapter-&gt;setDestination('images/');
  
      $files = $adapter-&gt;getFileInfo();
  
      foreach($files as $fieldname=&gt;$fileinfo)
      {
      if (($adapter-&gt;isUploaded($fileinfo[name]))&amp;&amp; ($adapter-&gt;isValid($fileinfo[‘name’])))
      {
      $adapter-&gt;receive($fileinfo[name]);
      //then, store links etc in db for retrieval later..
      }
  
      }
      var_dump($adapter-&gt;getMessages());
  </code></pre>
  
  <p>and i have got the error:</p>
  
  <pre><code>Zend\File\Transfer\Adapter\ValidatorPluginManager::get was unable to fetch or create an instance for ‘Count’
  </code></pre>
  
  <p>How i can solve this and make it workable?</p>