This function adds a MIME type to Apache.
Important:
When you disable the Web Server role, the system disables this function.
uapi --output=jsonpretty \ --user=username \ Mime \ add_mime \ type='text/foo' \ extension='.foo'
{- "apiversion": 3,
- "func": "add_mime",
- "module": "Mime",
- "result": {
- "data": null,
- "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}