SproutCMS

This is the code documentation for the SproutCMS project

function mimetypeExtended()

Get the content-type of a file using magic mime.

This is _NOT_ limited to the whitelist of mime types described in the
Constants. Use this with care.

Note mime_content_type() inspects file contents and can't always
determine css/js files correctly, this is a hack fix for that.

https://stackoverflow.com/a/17736797/7694753

Usage

null|string File::mimetypeExtended ( string $path );

Arguments

  1. string $path

Return value

  • string
    null if unknown
  • null
    null if unknown