Kirby 2 Docs
❌ Kirby 2 has reached its end of life. Migrate to a current version and
upgrade your v2 license now
.
$media->dir()
Returns the full path for the directory, in which the file is located
return
(string)
Example:
echo $media->dir();
↑
Toolkit API overview
←
$media->dimensions()
→
$media->download($filename = null)
↓
Back to Toolkit API section
Top