HTML5 upload correction