Checks if the file is a specific MIME type.
Parameters
$typestringrequired- The mime type to check (e.g.
'image','text','video','audio').
Source
public function isMimeType(string $type): bool
{
return $this->mimeType->isType($type);
}
Changelog
| Version | Description |
|---|---|
| 0.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.