src/BaiduBce/Util/MimeTypes.php
static function guessMimeType($fileName)
    {
        self::$map = include(__DIR__ . "/mime.types.php");
        $ext = pathinfo($fileName, PATHINFO_EXTENSION);
        return isset(self::$map[$ext]) ? self::$map[$ext] : 'application/octet-stream';
    }
static function guessMimeType($fileName)
    {
        self::$map = include(__DIR__ . "/mime.types.php");
        $ext = pathinfo($fileName, PATHINFO_EXTENSION);
        return isset(self::$map[$ext]) ? self::$map[$ext] : 'application/octet-stream';
    }
static function guessMimeType ( $ fileName ) { self :: $ map = include ( __DIR__ . "/mime.types.php" ) ; $ ext = pathinfo ( $ fileName , PATHINFO_EXTENSION ) ; return isset ( self :: $ map [ $ ext ] ) ? self :: $ map [ $ ext ] : 'application/octet-stream' ; }
Guess mime-type from file name extension. Return default mime-type if guess failed.

@param string $fileName

@return string
Guess mime - type from file name extension . Return default mime - type if guess failed .