Symfony\Component\HttpFoundation\File\File::guessExtension
Returns the extension based on the mime type.
If the mime type is unknown, returns null. This method uses the mime type as guessed by getMimeType() to guess the file extension.
Signature
public function guessExtension()
Returns
- string|null
- The guessed extension or null if it cannot be guessed