title: How to change name of file in javascript from input=File
body: <p>I need to change the filename (not the file, just the metadata of the name) when uploading to a sharepoint site.</p>
  
  <p>I figured that it would be easy enough to change the html attribute in javascript rather than playing with Sharepoint backend. So that when I upload a file it changes the name of the file (not the data)</p>
  
  <p>something like this:</p>
  
  <pre><code>function PreSaveAction(){
     var file = document.GetElementById('fileupload1');
     file.files[0].name='ChangedName.tmp'
  
  return true;
  }
  </code></pre>
  
  <p>Is this impossible due to the nature of the locked input='file' attributes?</p>