finish file upload function
update upload file