diff --git a/code/Forms/UploadField.php b/code/Forms/UploadField.php index 3417880ee..1b9ba8fa0 100644 --- a/code/Forms/UploadField.php +++ b/code/Forms/UploadField.php @@ -324,7 +324,7 @@ public function performDisabledTransformation() * @param Validator $validator * @return bool */ - public function validate($validator) + public function validateWithFormValidator($validator) { $maxFiles = $this->getAllowedMaxFileNumber(); $count = count($this->getItems() ?? []);