FileCountMaxΒΆ
Checks if the files uploaded from a field are less than or equal the configured value.
Example Code:
validators {
DefaultValidator {
model = DefaultValidator
config {
fields {
image.errorChecks {
fileCountMax {
model = FileCountMax
fileCountMax = 3
}
}
}
}
}
}
Properties
fileCountMax |
Sets the max amount of files a field can upload. |
Mandatory |
False |
Data Type |
Integer |
Default |
0 |