FileSizeMaxΒΆ

Checks if the size of an uploaded file is less or equal than the configured value.

Example Code:

validators {
  DefaultValidator {
    model = DefaultValidator
    config {
      fields {
        image.errorChecks {
          fileSizeMax {
            model = FileSizeMax
            fileSizeMax = 52428800
          }
        }
      }
    }
  }
}

Properties

fileSizeMax

Sets the max size a uploaded file can be. (in Byte)

Mandatory

False

Data Type

False|Integer

Default

False