title: Javascript file upload
body: <p>In most browsers, an input type="file" has the following files property:</p>
  
  <pre><code>document.getElementById("my-input").files
  </code></pre>
  
  <p>This can be used to detect a file is uploaded, and get the file. However, it looks like the files attribute doesn't exist in IE9.</p>
  
  <p>Added:</p>
  
  <p>In jQuery, you can do...</p>
  
  <p><code>$("#my-input").val()</code> to read the file name.  What about getting the files contents?</p>