mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 10:40:24 +02:00
453 B
453 B
Mimetype
v::mimetype(string $mimetype)
Validates if the file mimetype matches the expected one:
v::mimetype('image/png')->validate('image.png'); //true
This rule is case-sensitive and requires fileinfo PHP extension.
See also: