Zend\Validator\File\Size::isValid
Returns true if and only if the file size of $value is at least min and not bigger than max (when max is not null).
Signature
public function isValid(string|array
$value,
[array
$file = null] )
Parameters
$value
— object- File to check for size
$file
— array- File data from \Zend\File\Transfer\Transfer (optional)
Returns
- bool