edit user upload function