title: Rename uploading file in zend framework 2
body: <pre><code>   $request = $this-&gt;getRequest();
          if($request-&gt;isPost()) { 
       $files =  $request-&gt;getFiles()-&gt;toArray();
       $httpadapter = new Http(); 
       $filesize  = new Size(array('max' =&gt; 100000 )); //100KB  
       $extension = new Extension(array('extension' =&gt; array('doc')));
       $httpadapter-&gt;setValidators(array($filesize, $extension), $files['resume']['name']);
       if($httpadapter-&gt;isValid()) {
           $httpadapter-&gt;setDestination('./data/upload/');
           if($httpadapter-&gt;receive($files['resume']['name'])) {
               $newfile = $httpadapter-&gt;getFileName(); 
           }
       }
  }
  </code></pre>
  
  <p>Can you tell me how to change the file name before uploading</p>