elFinder\elFinderVolumeDriver::mimetypeInternalDetect PHP Method

mimetypeInternalDetect() protected static method

Detect file mimetype using "internal" method
Author: Dmitry (dio) Levashov
protected static mimetypeInternalDetect ( string $path ) : string
$path string file path
return string
    protected static function mimetypeInternalDetect($path)
    {
        $pinfo = pathinfo($path);
        $ext = isset($pinfo['extension']) ? strtolower($pinfo['extension']) : '';
        return isset(elFinderVolumeDriver::$mimetypes[$ext]) ? elFinderVolumeDriver::$mimetypes[$ext] : 'unknown';
    }