Mime
Mime Type Management
Return web server's MIME types
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.
get/Mime/list_mime
Query parameters
type'system' | 'user' required
Example:user
The MIME types to list.
- system — List the Apache system MIME types.
- user — List the Apache user MIME types.
Response
HTTP Request was successful.
Example response
{
"apiversion": 3,
"func": "list_mime",
"module": "Mime",
"result": {
"data": [
{
"extension": ".foo",
"origin": "user",
"type": "application/foo"
}
],
"metadata": {
"transformed": 1
},
"status": 1
}
}