This function lists all of Apache's MIME types.
Note:
This function does not list PHP versions with MIME types when the user or domain enables PHP-FPM. The system displays only custom MIME types.
Important:
When you disable the Web Server role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Mime \ list_mime \ type='user'
{- "apiversion": 3,
- "func": "list_mime",
- "module": "Mime",
- "result": {
- "data": [
- {
- "extension": ".foo",
- "origin": "user",
- "type": "application/foo"
}
], - "errors": null,
- "messages": null,
- "metadata": {
- "transformed": 1
}, - "status": 1,
- "warnings": null
}
}