Kirby 2 Docs
❌ Kirby 2 has reached its end of life. Migrate to a current version and
upgrade your v2 license now
.
$media->mime()
Returns the file's mime type
return
(string)
Example
echo $media->mime(); // echos image/jpeg
↑
Toolkit API overview
←
$media->load($data = array())
→
$media->modified($format = false, $handler = null)
↓
Back to Toolkit API section
Top