How to Set Mime Types

How to Set Mime Types thumbnail
Photos are usually JPEG images with the MIME type "image/jpeg."

MIME types describe the media type of email and, more recently, web servers and applications. While specific file extensions are usually used for certain file types, they are not required to be used for a certain file type; also, a particular file type may have many file extensions. MIME types define how the media type should be displayed or operate without ambiguity. However, Mozilla points out that as new content types are invented or implemented into web servers, administrators of those servers may fail to add the new MIME types. You can add MIME types by creating an .htaccess file and uploading it to your server.

Instructions

    • 1

      Determine the MIME type of the file you want to use for your content. If you used a software application to create the content, look at the software's documentation to determine the correct content, or search the IANA MIME Media Types registry to locate the correct MIME type for your content (this registry contains all registered MIME types -- see Resources).

    • 2

      Open your preferred text editor. Make sure that your text editor is capable of creating .htaccess files; TextPad, UltraEdit and Microsoft WordPad all have this capability, but Microsoft Notepad does not.

    • 3

      Add the MIME type and file extension associated with the type preceded by the text "AddType" to a new text document in your text editor. Add each type as a new line. For example, to add MIME types for JPEG and PDF files, type:

      AddType image/jpeg .jpg

      AddType application/pdf .pdf

    • 4

      Save the file as an .htacces file. Click "File," then "Save As" to save the file. Name the file ".htaccess" and then click "Save."

    • 5

      Upload the .htaccess file to the main directory of your web server. This can be done with the "File Manager" application provided by your host or through an FTP client.

Tips & Warnings

  • Add MIME types for media content that is not displayed properly. You do not need to go through this process if your content is being displayed correctly.

Related Searches:

References

Resources

  • Photo Credit photo image by gilles vallée from Fotolia.com

Comments

You May Also Like

  • How to Set MIME Types in IIS 6

    Internet Information Services (IIS) is the Microsoft web host that allows you to host and create websites. The IIS console gives you...

  • How to Add MIME Types

    MIME types enable Web browsers to display files that are not in HTML format. While file extensions are often used in a...

  • How to Configure Mime Types

    Multipurpose Internet Mail Extensions (MIME) types define the type of data contained within a file on a web server. MIME types are...

  • The Types of MIME Files

    The Types of MIME Files. Website owners must ensure that the correct MIME (Multipurpose Internet Mail Message) types are registered on their...

  • How to Edit MIME Types in IE

    When an image file is opened in a photo editing program, it is painfully slow to preview. But if the default program...

  • .Htaccess MIME Types

    .Htaccess MIME Types. Apache web servers use .htaccess files to configure websites and tell browsers how to interpret files. MIME, which stands...

  • How to Change File Type Associations in Windows XP

    File type associations help Windows XP identify the programs that are required to open certain files or applications. Text files (.txt) are...

  • What Is MIME Type Association?

    MIME (Multipurpose Internet Mail Exchange) was initially used to provide support for non-ASCII text in e-mail. It also supported non-text attachments and...

  • How to Send an E-mail Attachment

    These instructions will give you the basics of how to send an e-mail attachment no matter what program you have. You might...

  • How to Upload MIME Types With PHP

    MIME stands for Multipurpose Internet Mail Extensions. It is an Internet media file type that is part of a two-part identifier of...

  • How to Read a PDF From a MIME-Type Web Service

    MIME stands for Multipurpose Internet Mail Extensions and is the reason we are able to transfer files from one computer to another...

  • How to Add MIME Types in IIS

    Multipurpose Internet Mail Extensions (MIME) types are settings and configurations on an Internet Information Server (IIS) that tell the browser what type...

  • PHP Image Mime Types

    PHP Image Mime Types. Originally developed for e-mail usage, Multipurpose Internet Mail Extensions (MIME) have become the standard method across the web...

  • JPEG Mime Types

    JPEG Mime Types. A MIME type is a formally agreed-upon standard for describing content to be shared over the Internet, specifically through...

  • How to Register Mime Types

    Multipurpose Internet Mail Extensions (MIME) is a type of recognition system that lets browsers open the right program for an embedded file....

  • How to Decode an Email in MIME Format

    Most emails sent today are MIME (Multipupose Internet Mail Extensions) formatted. This allows emails to be sent with plain text and rich...

  • How to Host File Extensions

    The Multipurpose Internet Mail Extension (MIME) types you configure in your web server tell the server what application is associated with each...

  • Mime Types

    MIME -- Multipurpose Internet Mail Extensions -- is a standard codified by the IETF, the Internet Engineering Task Force. The purpose of...

  • How to Open MIME Files in Outlook 2007

    MIME files are encoded files that are mainly associated with Multi-Purpose Internet Mail Extension, according to FileInfo.com, an online database of file...

  • How to Change Mime Type Icons in KDE 4.2

    The Multi-purpose Internet Mail Extensions (MIME) protocol is used to identify different types of data being transmitted based on their meta data....

Related Ads

Featured