protected function getMime(UploadedFileInterface $upload)
    {
        $file = $upload->getStream()->getMetadata('uri');

        return (new \finfo(FILEINFO_MIME_TYPE))->file($file);
    }
protected function getMime(UploadedFileInterface $upload)
    {
        $file = $upload->getStream()->getMetadata('uri');

        return (new \finfo(FILEINFO_MIME_TYPE))->file($file);
    }
protected function getMime ( UploadedFileInterface $ upload ) { $ file = $ upload -> getStream ( ) -> getMetadata ( 'uri' ) ; return ( new \ finfo ( FILEINFO_MIME_TYPE ) ) -> file ( $ file ) ; }
Retourne le mimetype du fichier.

@param UploadedFileInterface $upload

@return string|false Minetype ou FALSE si une erreur s'est produite.
Retourne le mimetype du fichier .