public function getMimeType()
    {
        // return mime type ala mimetype extension
        $finfo = finfo_open(FILEINFO_MIME);

        $mime = finfo_file($finfo, $this->getFullPath());

        return $mime;
    }
public function getMimeType()
    {
        // return mime type ala mimetype extension
        $finfo = finfo_open(FILEINFO_MIME);

        $mime = finfo_file($finfo, $this->getFullPath());

        return $mime;
    }
public function getMimeType ( ) { // return mime type ala mimetype extension $ finfo = finfo_open ( FILEINFO_MIME ) ; $ mime = finfo_file ( $ finfo , $ this -> getFullPath ( ) ) ; return $ mime ; }
Get the mime type for the file.

@param  FileInterface $file
@return string
Get the mime type for the file .