Skip to content

Commit

Permalink
Less than (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrEssex authored Jan 11, 2023
1 parent f5e6757 commit f940013
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@packaged/validate",
"version": "3.1.2",
"version": "3.1.3",
"main": "index.js",
"repository": "[email protected]:packaged/validate",
"author": "Tom Kay <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion src/Validators/FileSizeValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function serialize(): array
protected function _doValidate($value): Generator
{
// Validation
if(array_key_exists('size', $value) && $value['size'] > ($this->_maxSize * 1024 * 1024))
if(array_key_exists('size', $value) && $value['size'] < ($this->_maxSize * 1024 * 1024))
{
yield $this->_makeError("File upload cannot be more than " . $this->_maxSize . "mb in size");
}
Expand Down

0 comments on commit f940013

Please sign in to comment.