\OSS\CoreMimeTypes

Class MimeTypes

The map of a file's extention name to its corresponding Content-Type value in the file upload request. If the file extention name is not predefined in this class, getMimetype() returns null.

Summary

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

Properties

$mime_types

$mime_types

Methods

getMimetype()

getMimetype(string  $name) : string

Get the content-type value of http header from the file's extension name.

Parameters

string $name

Default file extension name.

Returns

string —

content-type