class MimeType

Properties

static protected array $mimes

An array of extension to MIME types.

Methods

static string
from(string $filename)

Get the MIME type for a file based on the file's extension.

Details

at line 787
static string from(string $filename)

Get the MIME type for a file based on the file's extension.

Parameters

string $filename

Return Value

string