MimeTypeGuesserInterface
in
Guesses the mime type of a file.
Tags
Table of Contents
- guess() : string|null
- Guesses the mime type of the file with the given path.
Methods
guess()
Guesses the mime type of the file with the given path.
public
guess(string $path) : string|null
Parameters
- $path : string
-
The path to the file
Tags
Return values
string|null —The mime type or NULL, if none could be guessed