Zend\Validator\File\Size::setMax
Sets the maximum file size
File size can be an integer or a byte string This includes 'B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB' For example: 2000, 2MB, 0.2GB
Signature
public function setMax(int|string
$max )
Parameters
$max
— object- The maximum file size
Returns
- Size
- Provides a fluent interface
Errors/Exceptions
-
InvalidArgumentException
- When max is smaller than min