title: jQuery uploadify change file name as it is being uploaded.
body: <p>I am using uploadify (a jQuery plugin) to upload files as I am adding clients to my DB. </p>
  
  <p>I would like to attach files to clients. The issue #1 is that the client is a new client so it has not been added to the DB just yet. I have overcome this by getting the next Client_ID in the DB. </p>
  
  <p>NOW the real issue is that all files that are uploaded should be prepended with this ID...something like:
  (29) ---i would like the parenthesis as an added open and close of the client_ID----I have searched on stackoverflow and uploadify.com but can't make heads or tails on how to do this.</p>
  
  <p>I NEED TO DO IT VIA JS, because of the fact that I am using the PHP elsewhere in my application and I don't want to change it, if at all possible. </p>
  
  <p><strong>SOME CODE:</strong>
  here is the jQuery thus far</p>
  
  <pre><code>$('#file_upload').uploadify({
      'uploader'  : 'uploader/uploadify.swf',
      'script'    : 'uploader/uploadify.php',
      'cancelImg' : 'uploader/cancel.png',
      'folder'    : 'clientFiles',
      'buttonText'  : 'Attachments',
      'removeCompleted' : false,
      'multi'          : true,
      'auto'      : true
    });
  </code></pre>
  
  <p>PHP that gets next Client_ID</p>
  
  <pre><code>$sql = "SELECT Client_ID FROM clients";
      $result = $db-&gt;sql_query($sql);
      $nextClientID= mysql_num_rows($result)+1;
  </code></pre>
  
  <p>THANKS for ANY HELP!!!</p>