Modify upload to use HTML5 functionality