MIME Types in cPanel
MIME types (Multipurpose Internet Mail Extensions) tell web browsers how to handle different kinds of files. For example, the MIME type application/pdf instructs browsers to open .pdf files as Portable Document Format files. In cPanel, you can configure custom MIME types so that browsers correctly interpret files with unusual or custom extensions.
Why Use MIME Types?
Section titled “Why Use MIME Types?”- Ensure browsers recognize and open files correctly.
- Support custom file extensions (e.g.,
.mypdf→ open as PDF). - Improve compatibility for specialized applications or file formats.
Adding a Custom MIME Type
Section titled “Adding a Custom MIME Type”-
Log in to cPanel.
-
On the Tools page → Advanced section, click MIME Types.
-
Under Create a MIME Type:
- In the MIME Type box, enter the type (e.g.,
application/pdf). - In the Extension(s) box, enter the file extension(s) you want to associate (e.g.,
mypdf).
- In the MIME Type box, enter the type (e.g.,
-
Click Add.
-
cPanel adds the custom MIME type.
Example: If you have files with the .mypdf extension, you can add a MIME type application/pdf so browsers treat them as PDF files.
Deleting a Custom MIME Type
Section titled “Deleting a Custom MIME Type”- Log in to cPanel.
- Go to Tools → Advanced → MIME Types.
- Under User Defined MIME Types, locate the MIME type you want to remove.
- Click Delete.
- cPanel deletes the custom MIME type.
You cannot delete system‑wide MIME types only custom ones you’ve created.