\Symfony\Component\HttpFoundation\File\MimeTypeExtensionGuesserInterface

Guesses the file extension corresponding to a given mime type.

Summary

Methods
Constants
guess()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

guess()

guess(string  $mimeType) : string

Makes a best guess for a file extension, given a mime type.

Parameters

string $mimeType

The mime type

Returns

string —

The guessed extension or NULL, if none could be guessed