$file->mime()

Returns the file's mime type

  • return (string)

Example

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

Is something missing or incorrect? Edit this page on Github…