Description
This function creates an Apache MIME type handler for a file extension.
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 |
extension |
string |
Required The file extension. |
A valid file extension. |
.foo |
handler |
string |
Required The Apache MIME handler. |
A valid Apache MIME handler. |
txt-foo |
Returns
This function only returns metadata.