Overview
MIME types (Multipurpose Internet Mail Extensions) inform web browsers how to handle different file types when downloading or rendering them. Sometimes, you may need to define a custom MIME type for specific file extensions that aren't already recognized. This is useful when working with new file formats or proprietary technologies.
What is a MIME Type?
A MIME type tells the browser what kind of content it’s dealing with and how it should be processed. For example, application/pdf
tells the browser the file is a PDF and should be opened in a compatible viewer.
How to Add a Custom MIME Type
- Log in to your cPanel account.
- In the ADVANCED section, click on MIME Types.
- Under Create A MIME Type:
- In the MIME Type field, enter the desired type. Example:
application/pdf
. - In the Extension(s) field, enter the file extension(s). Example:
mypdf
.
- In the MIME Type field, enter the desired type. Example:
- Click Add.
How to Delete a Custom MIME Type
- In the MIME Types section, locate the type you want to remove.
- Click the Delete link next to it.
- Confirm by clicking Delete MIME Type.