$file->mime()

Returns the file's mime type

  • return (string)

Example

echo $page->image('my-image.jpg')->mime();
// echos image/jpeg