title: How to change a filename when uploading with blueimp jQuery-File-Upload?
body: <p>Here is my problem.<br>
  I am trying to create a programmatic way (without the customer to input anything) for a customer to fill some web forms. For this, I have created a custom browser (which will be installed in customer's machine as a java application, using eclipse <em>swt with xulrunner v10.0</em> support).<br> 
  One of these forms requires to upload a file using the <code>blueimp jquery fileupload plugin</code>. 
  This file is hosted at customer's machine at a predefined directory (let's say C:\ as it's a windows-only based application).</p>
  
  <p>I have used the following snippets:</p>
  
  <p>Create file using javascript hosted at customer's local machine:<br/></p>
  
  <pre><code>var myFile = File("C:\some_dummy_file");
  </code></pre>
  
  <p>and upload the file programmatically:</p>
  
  <pre><code>$('#some_form').fileupload('add', {files: myFile});
  </code></pre>
  
  <p>Everything is working just fine, with one exception:<br>
  The uploaded file has now name <i>'C:some_dummy_file'</i> (and not <i>'some_dummy_file'</i>) as it seems to include the directory that it resides. Unfortunately as the server applies file name validation, it rejects the upload as it expects only files with name <i>'some_dummy_file'</i>.<br>
  Additionally, as I don't have control at server side, I cannot change the file name at server side (I have seen some examples for these cases but these cannot be used in my case).<br/>
  What are my available options / workarounds? Is there any way to change the name before adding (or submitting) the file?<br>Of course the way that I am creating the file ( <code>var myFile = File("C:\some_dummy_file");</code>) is just a suggestion, so any other suggestions that will resolve my problem are more than welcome. </p>
  
  <p>Thank you very much in advance</p>