added code for html5 uploader