Skip to content

Instantly share code, notes, and snippets.

@joshq00
Created July 25, 2014 21:20
Show Gist options
  • Save joshq00/89817a75653a706d51c5 to your computer and use it in GitHub Desktop.
Save joshq00/89817a75653a706d51c5 to your computer and use it in GitHub Desktop.
// <input type="file" id="files" multiple/>
var fr = new FileReader;
fr.onload = function ( event ) {
window.result = event.target.result;
};
fr.readAsText( files.files[ 0 ] );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment