title: "Blueimp jQuery File Upload" rename files
body: <p>I'm using the Blueimp jQuery file upload tool. I'd like to completely rename the files as they're uploaded. Since photos are being added to a unique directory based on the userID, I'd really just like to add photos with names 001.jpg, 002.jpg, 003.jpg, etc.  How can I accomplish this (either by modifying UploadHandler.php or index.php?</p>
  
  <p>In index.php (code below currently changes the upload directory):</p>
  
  <pre><code>$userID = 'user005'; //hardcoded in this example
  $options = array('upload_dir'=&gt;'files/'.$userID.'/', 'upload_url'=&gt;'files/'.$userID.'/');
  $upload_handler = new UploadHandler($options);
  </code></pre>