protected function getContentType($fileName)
    {
        // Just grabbing the extension
        $extension = strtolower(substr($fileName, strrpos($fileName, '.') + 1));
        if (isset($this->extensionMap[$extension])) {
            return $this->extensionMap[$extension];
        }

        return 'application/octet-stream';
    }
protected function getContentType($fileName)
    {
        // Just grabbing the extension
        $extension = strtolower(substr($fileName, strrpos($fileName, '.') + 1));
        if (isset($this->extensionMap[$extension])) {
            return $this->extensionMap[$extension];
        }

        return 'application/octet-stream';
    }
protected function getContentType ( $ fileName ) { // Just grabbing the extension $ extension = strtolower ( substr ( $ fileName , strrpos ( $ fileName , '.' ) + 1 ) ) ; if ( isset ( $ this -> extensionMap [ $ extension ] ) ) { return $ this -> extensionMap [ $ extension ] ; } return 'application/octet-stream' ; }
Simple method to return the contenttype.

@param string $fileName

@return string
Simple method to return the contenttype .