update upload and dir_helper