title: Html file input, set selection from File object
body: <p>I understand that the <code>&lt;input type="file"&gt;</code> for the most part cannot be manipulated by javascript for security reasons, but is it possible if I have a File object?</p>
  
  <p>I have a drag area on a page, that I can get a File object out of. I don't want to use the xhr.sendAsBinary, I'd rather just upload from a regular form with the target set as a frame.</p>
  
  <p>I've tried doing something like</p>
  
  <pre><code>var select = document.getElementById('upload_1'); 
  select.files[0] = myFile;
  myForm.submit();
  </code></pre>
  
  <p>Is there a way to do this?</p>