title: Upload image with JavaScript from another server via AJAX
body: <p>I'm trying (if it's possible) to make an upload of an image stored on another site (not on computer) via JavaScript (jQuery allowed) with an AJAX request.</p>
  
  <p>Lets say that we have the image <code>http://example.com/a.jpg</code>. I need to make an AJAX request, submiting this image to <code>http://test.com/process.php</code>.</p>
  
  <ul>
  <li>I can't edit the file <code>process.php</code> to accept anything than a <em>valid uploaded file</em>.</li>
  <li>Browser support is not important.</li>
  </ul>
  
  <p>Is this even possible ? Because of security issues we canțt dynamicaly populate a file field, so maybe the is another way to send the file without having the user to select the file.</p>
  
  <p>I think I should use <code>FormData</code>, not sure.</p>