Example of how to upload images via the HTML5 File API.