title: Load image from URL into file input field
body: <p>Is it possible to use JavaScript to get an image URL into an <code>&lt;input type="file"&gt;</code> ready for submitting? Or to achieve a similar effect? Practically, I have the image at <code>http://example.com/xxx/image.jpg</code> and I'd like to "preload it" into a use registration form so it can be submitted with the form as if it was loaded from the disk using an input field.</p>
  
  <p>The case scenario is user data obtained from an API that I want to use to populate an user registration form where one field is the user's avatar which the API hand over as a URL.</p>
  
  <p><em>This is not about how to preview an image selected from disk using an input field!</em></p>