Global Helpers
mimeTypes()
Signature
Section titled “Signature”mimeTypes() — returns string
Available in: controller, model, mapper, migrator, migration, tabledefinition
Category: Miscellaneous Functions
Description
Section titled “Description”Returns an associated MIME type based on a file extension.
Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
extension | string | yes | — | The extension to get the MIME type for. |
fallback | string | no | application/octet-stream | The fallback MIME type to return. |