public function mime()
    {
        if (!$this->exists()) {
            return false;
        }
        if (function_exists('finfo_open')) {
            $finfo = finfo_open(FILEINFO_MIME);
            $finfo = finfo_file($finfo, $this->pwd());
            if (!$finfo) {
                return false;
            }
            list($type) = explode(';', $finfo);

            return $type;
        }
        if (function_exists('mime_content_type')) {
            return mime_content_type($this->pwd());
        }

        return false;
    }
public function mime()
    {
        if (!$this->exists()) {
            return false;
        }
        if (function_exists('finfo_open')) {
            $finfo = finfo_open(FILEINFO_MIME);
            $finfo = finfo_file($finfo, $this->pwd());
            if (!$finfo) {
                return false;
            }
            list($type) = explode(';', $finfo);

            return $type;
        }
        if (function_exists('mime_content_type')) {
            return mime_content_type($this->pwd());
        }

        return false;
    }
public function mime ( ) { if ( ! $ this -> exists ( ) ) { return false ; } if ( function_exists ( 'finfo_open' ) ) { $ finfo = finfo_open ( FILEINFO_MIME ) ; $ finfo = finfo_file ( $ finfo , $ this -> pwd ( ) ) ; if ( ! $ finfo ) { return false ; } list ( $ type ) = explode ( ';' , $ finfo ) ; return $ type ; } if ( function_exists ( 'mime_content_type' ) ) { return mime_content_type ( $ this -> pwd ( ) ) ; } return false ; }
Get the mime type of the file. Uses the finfo extension if
its available, otherwise falls back to mime_content_type

@return false|string The mimetype of the file, or false if reading fails.
Get the mime type of the file . Uses the finfo extension if its available otherwise falls back to mime_content_type