Description
This function adds a MIME type to Apache.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
type |
string |
Required The MIME type. |
A valid MIME type. |
text/foo |
extension |
string |
Required The file extension. |
A valid file extension. |
.foo |
Returns
This function only returns metadata.