title: jQuery/Ajax Submit file to url localhost
body: <p>I have a page on my localhost that contains an input type file and a submit button.</p>
  
  <p>From this page I can upload files.</p>
  
  <p>It looks like this:</p>
  
  <pre><code>&lt;form&gt;
    &lt;input type="file"&gt;
    &lt;input type="submit" value="Submit"&gt;
  &lt;/form&gt; 
  </code></pre>
  
  <p>This page is on url: <code>http://127.0.0.1/upload.html</code></p>
  
  <p>What I want to do is to have my index.html submit a file to this location like having something like this:</p>
  
  <p><code>&lt;form action="http://127.0.0.1/upload.html"&gt;</code> etc...</p>
  
  <p>But I want to use Javascript.</p>
  
  <p>How can I do this?</p>