\Symfony\Component\HttpFoundation\File\MimeTypeMimeTypeExtensionGuesser

Provides a best-guess mapping of mime type to file extension.

Summary

Methods
Properties
Constants
guess()
No public properties found
No constants found
No protected methods found
$defaultExtensions
N/A
No private methods found
No private properties found
N/A

Properties

$defaultExtensions

$defaultExtensions : 

A map of mime types and their default extensions.

This list has been placed under the public domain by the Apache HTTPD project. This list has been updated from upstream on 2013-04-23.

Type

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