Skip to content

Commit cf02790

Browse files
author
Steeven Andrian
committed
uploader handler bugs fixes
1 parent 1afd650 commit cf02790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Handlers/Uploader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ protected function validate(UploadFile $file)
439439
}
440440

441441
/* Validate max size */
442-
if ($this->allowedFileSize[ 'min' ] > 0) {
442+
if ($this->allowedFileSize[ 'max' ] > 0) {
443443
if ($file->getSize() > $this->allowedFileSize[ 'max' ]) {
444444
$this->errors[] = language()->getLine(
445445
'UPLOADER_E_ALLOWED_MAX_FILESIZE',

0 commit comments

Comments
 (0)