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