Fixed a html5 upload bug