protected _validateFileSize()

in src/services/form-validation/FormValidationService.ts [258:266]


  protected _validateFileSize(component: FormComponent, size: number): boolean {
    const componentFileMaxSize = component.fileMaxSize || DEFAULT_MAX_FILE_SIZE;
    const fileSize = bytes.parse(size);
    const fileMaxSize = bytes.parse(componentFileMaxSize);
    if (fileSize > fileMaxSize) {
      throw new FileMaxSizeError(componentFileMaxSize);
    }
    return true;
  }