From b60dc83744298b2ebbe600eabd04707ec53db956 Mon Sep 17 00:00:00 2001 From: overtrue Date: Fri, 20 Nov 2020 20:47:45 +0800 Subject: [PATCH] Bugfix. --- src/Strategy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Strategy.php b/src/Strategy.php index 468573a..78288b3 100644 --- a/src/Strategy.php +++ b/src/Strategy.php @@ -112,7 +112,7 @@ public function isValidMime() */ public function isValidSize() { - return $this->file->getSize() <= $maxSize || 0 === $maxSize; + return $this->file->getSize() <= $this->maxSize || 0 === $this->maxSize; } public function validate()