update the temp path for upload