Read Files In The Browser
FileReader.js is intended to make accessing files via the FileReader interface easier. Read more about the motivation behind filereader.js.
FileReader.js does not require any other libraries. If you do use jQuery, there is a small plugin wrapping up the functionlity though!
Or you can jump straight to the filereader.js or filereader.min.js if you are in a hurry.
If you’ve got some time to look around, check out the annotated source code!