maxTotalSize

Creates a validation functions that validates total file size of a file list.

const validate = maxTotalSize(requirement, error);

Parameters

  • requirement number
  • error string

Return

  • validate QRL<(value: MaybeValue<File[]>) => string>