class MimeTypeExtensionGuesser implements ExtensionGuesserInterface
Provides a best-guess mapping of mime type to file extension.
protected | $defaultExtensions | A map of mime types and their default extensions. |
string | guess(string $mimeType) Makes a best guess for a file extension, given a mime type. |
Makes a best guess for a file extension, given a mime type.
string | $mimeType | The mime type |
string | The guessed extension or NULL, if none could be guessed |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeExtensionGuesser.html