src/TempFile.php
public function detectMime() {

        $fileInfo = new \finfo(FILEINFO_MIME);

        return $fileInfo->buffer($this->getContent(), FILEINFO_MIME) ?: null;
    }
public function detectMime() {

        $fileInfo = new \finfo(FILEINFO_MIME);

        return $fileInfo->buffer($this->getContent(), FILEINFO_MIME) ?: null;
    }
public function detectMime ( ) { $ fileInfo = new \ finfo ( FILEINFO_MIME ) ; return $ fileInfo -> buffer ( $ this -> getContent ( ) , FILEINFO_MIME ) ? : null ; }
Tries to detect MIME-Type using PHP's Fileinfo extension.

@return string
Tries to detect MIME - Type using PHP s Fileinfo extension .