Search Our Database
How to Add MIME Type in DirectAdmin (Enhanced Skin)
Introduction
MIME (Multipurpose Internet Mail Extensions) types are essential for web servers to correctly identify and serve different file formats to browsers. When browsers encounter unknown file extensions, they may not handle them properly, potentially causing download prompts instead of displaying content or triggering security warnings. DirectAdmin’s MIME Types management allows you to define how your server should handle specific file extensions, ensuring proper content delivery and user experience.
This guide explains how to add custom MIME types using the Advanced Features > Mime Types section in DirectAdmin. Adding appropriate MIME types is particularly important when hosting specialized file formats, custom applications, or emerging web technologies that may not be included in the server’s default configuration.
Prerequisites
- Access to DirectAdmin control panel with the necessary permissions.
Step-by-step Guide
Step 1: Access DirectAdmin
Log in to your DirectAdmin control panel.
Step 2: Access Mime Types
Go to the Advanced Features section and click on Mime Types. You will see the list of MIME types that have been created.
Step 3: Add a New MIME Type
In the Add MimeType section:
-
MimeType: Enter the MIME type you wish to assign (e.g., application/x-shockwave-flash).
-
Extension: Enter file extension that will use this MIME type (e.g., swf)
Then, click Add.
You can add different extensions to the same MIME type by repeating the step and entering a different extension.
Step 4: Verify the changes
You can verify the addition by referring to the list of MIME types below. To test, upload a file with the new extension to your website and access it via a browser. The browser should now recognise and process the file as per the MIME type.
Conclusion
Adding MIME types through DirectAdmin’s MIME Types interface is a straightforward process that ensures proper file handling and content delivery. By defining appropriate MIME types for your file extensions, you enable browsers to correctly interpret and display your content, improving user experience and preventing compatibility issues.
Should you have any inquiries about the guidelines, please feel free to open a ticket through your portal account or contact us at support@ipserverone.com. We’ll be happy to assist you further.