update upload file functions