FileCountMinΒΆ

Checks if the files uploaded from a field are more than or equal the configured value.

Example Code:

validators {
  DefaultValidator {
    model = DefaultValidator
    config {
      fields {
        image.errorChecks {
          fileCountMin {
            model = FileCountMin
            fileCountMin = 1
          }
        }
      }
    }
  }
}

Properties

fileCountMin

Sets the min amount of files a field must upload.

Mandatory

False

Data Type

Integer

Default

0