title: File 'C:\xampp\tmp\php3226.tmp' could not be renamed. It already exists error in zend, how to?
body: <p>i am using this function to upload files to the disk:</p>
  
  <pre><code>$talentFolderPath = 'C:/xampp/htdocs/project/';
  
  public function uploadToDisk($talentFolderPath, $filename)
  {
  
      $adapter = new Zend_File_Transfer_Adapter_Http();
      $adapter-&gt;setDestination($talentFolderPath);
      $adapter-&gt;addFilter( 'Rename',array('target' =&gt; $talentFolderPath."/".$filename) );
      if ($adapter-&gt;receive()) {
          $message = "success";
      } else {
          $message = "fail";
      }
  
      return $message;
  }
  </code></pre>
  
  <p>and i get this message:</p>
  
  <blockquote>
    <p>Message: File 'C:\xampp\tmp\php3226.tmp' could not be renamed. It already exists.</p>
  </blockquote>
  
  <p>Any ideas what is going on?</p>
  
  <p>Thanks.</p>