title: wordpress codex upload file with rename function?
body: <p>I need to know if there is any other function that can do this.</p>
  
  <p>I was trying to create a function that will upload photo to the wp_handle_upload()</p>
  
  <p>Now what im trying to search is that.
  Is it possible that while going to this function the photo will rename.</p>
  
  <pre><code>if ( ! function_exists( 'wp_handle_upload' ) ) require_once( ABSPATH . 'wp-admin/includes/file.php' );
  $uploadphoto =  $_FILES['image'];
  $uploadphoto_overrides = array( 'test_form' =&gt; false );
  $movephoto = wp_handle_upload( $uploadphoto, $uploadphoto_overrides );  
  </code></pre>
  
  <p>im trying to do something like this</p>
  
  <pre><code>$uploadphoto = '123changename' . $_FILES['image'];
  </code></pre>
  
  <p>I only got errors.
  Is there other way? </p>