title: php + upload.class + not overwriting the image
body: <p>i am trying to upload a file with upload.class and i need to overwrite the file when the user upload a new one. But instead of overwriting, he is putting photo_01, photo_02, etc... 
  The code:</p>
  
  <pre><code>        $foto = new Upload($_FILES['photo']);
          $fotot = new Upload($_FILES['photo']);
          $fotot-&gt;image_resize = true;
          $fotot-&gt;image_y = 110;
          $fotot-&gt;image_x = 110;
  
          $foto-&gt;file_new_name_body = "photo";
          $fotot-&gt;file_new_name_body = "photo";
          $foto-&gt;file_overwrite = true;
          $fotot-&gt;file_overwrite = true;
          $fotot-&gt;Process("{$dir_fotos}thumbs/");
          $foto-&gt;Process("{$dir_fotos}");
  </code></pre>
  
  <p>Somebody has already passed by this or has a solution??? notice that i'm using <code>file_ovewrite = true;</code>
  thanks</p>
  
  <p>I solved the problem...sorry spending your time</p>