code: public static void AssertUploadEntireFileInRange(String localFilePath) throws ParamException {
          long fileSize = 0;
          try {
              fileSize = CommonFileUtils.getFileLength(localFilePath);
          } catch (Exception e) {
              throw new ParamException(localFilePath + " is not effective file!");
          }
  
          long maxFileSize = 10 * 1024 * 1024;
          if (fileSize > maxFileSize) {
              throw new ParamException(
                      localFilePath + " is too large, please use uploadSliceFile interface!");
          }
      }
docs: 判断文件是否适合使用整文件上传，使用范围0 ~ 10MB, 大文件应该用分片上传
  
  @param localFilePath 本地文件路径
  @throws ParamException