apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/util/ConfigFileUtils.java/ConfigFileUtils/checkEmpty
class ConfigFileUtils:  static void checkEmpty(MultipartFile file) {
    if (file.isEmpty()) {
      throw new BadRequestException("The file is empty. " + file.getOriginalFilename());
    }
  }