Skip to content

Commit

Permalink
uploader handler bugs fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Steeven Andrian committed Aug 15, 2019
1 parent 1afd650 commit cf02790
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Handlers/Uploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ protected function validate(UploadFile $file)
}

/* Validate max size */
if ($this->allowedFileSize[ 'min' ] > 0) {
if ($this->allowedFileSize[ 'max' ] > 0) {
if ($file->getSize() > $this->allowedFileSize[ 'max' ]) {
$this->errors[] = language()->getLine(
'UPLOADER_E_ALLOWED_MAX_FILESIZE',
Expand Down

0 comments on commit cf02790

Please sign in to comment.