Reading the contents of a file within a web application can be accomplished by utilizing the HTML5 File API. First, add an input with type="file" in your HTML:
<input type="file" id="upload">
Next, we're going to add a change listener on the file-input. This e...