Symfony\Component\HttpFoundation\File\MimeType\MimeTypeGuesser::guess
Tries to guess the mime type of the given file
The file is passed to each registered mime type guesser in reverse order of their registration (last registered is queried first). Once a guesser returns a value that is not NULL, this method terminates and returns the value.
Signature
public function guess(string
$path )
Parameters
$path
— string- The path to the file
Returns
- string
- The mime type or NULL, if none could be guessed