src/FileDownload.php
private function getMimeType ($fileName)
    {
        $fileExtension  = pathinfo($fileName, PATHINFO_EXTENSION);
        $mimeTypeHelper = Mimetypes::getInstance();
        $mimeType       = $mimeTypeHelper->fromExtension($fileExtension);

        return !is_null($mimeType) ? $mimeType : "application/force-download";
    }
private function getMimeType ($fileName)
    {
        $fileExtension  = pathinfo($fileName, PATHINFO_EXTENSION);
        $mimeTypeHelper = Mimetypes::getInstance();
        $mimeType       = $mimeTypeHelper->fromExtension($fileExtension);

        return !is_null($mimeType) ? $mimeType : "application/force-download";
    }
private function getMimeType ( $ fileName ) { $ fileExtension = pathinfo ( $ fileName , PATHINFO_EXTENSION ) ; $ mimeTypeHelper = Mimetypes :: getInstance ( ) ; $ mimeType = $ mimeTypeHelper -> fromExtension ( $ fileExtension ) ; return ! is_null ( $ mimeType ) ? $ mimeType : "application/force-download" ; }
Returns the mime type of a file name

@param string $fileName

@return string
Returns the mime type of a file name