diff --git a/src/File.php b/src/File.php index 03fca21b..b2a19c88 100644 --- a/src/File.php +++ b/src/File.php @@ -1180,7 +1180,7 @@ public function getAbsoluteSize() public function validate() { $result = ValidationResult::create(); - $this->File->validate($result, $this->Name); + $this->File->validateFilename($result, $this->Name); $this->extend('updateValidate', $result); return $result; } diff --git a/src/Storage/DBFile.php b/src/Storage/DBFile.php index 4c397d6f..5ea53c00 100644 --- a/src/Storage/DBFile.php +++ b/src/Storage/DBFile.php @@ -455,7 +455,7 @@ protected function isValidFilename(string $filename): bool protected function assertFilenameValid(string $filename): void { $result = new ValidationResult(); - $this->validate($result, $filename); + $this->validateFilename($result, $filename); if (!$result->isValid()) { throw new ValidationException($result); }