\League\Flysystem\UtilMimeType

Summary

Methods
Properties
Constants
detectByContent()
detectByFileExtension()
detectByFilename()
getExtensionToMimeTypeMap()
No public properties found
No constants found
No protected methods found
$extensionToMimeTypeMap
N/A
No private methods found
No private properties found
N/A

Properties

$extensionToMimeTypeMap

$extensionToMimeTypeMap : 

Type

Methods

detectByContent()

detectByContent(mixed  $content) : string|null

Detects MIME Type based on given content.

Parameters

mixed $content

Returns

string|null —

MIME Type or NULL if no mime type detected

detectByFileExtension()

detectByFileExtension(string  $extension) : string|null

Detects MIME Type based on file extension.

Parameters

string $extension

Returns

string|null —

MIME Type or NULL if no extension detected

detectByFilename()

detectByFilename(string  $filename) : string|null

Parameters

string $filename

Returns

string|null —

MIME Type or NULL if no extension detected

getExtensionToMimeTypeMap()

getExtensionToMimeTypeMap() : array

Returns

array —

Map of file extension to MIME Type