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