Tuesday, December 02, 2008

MIME Types - a brief intro

Mime types tell browsers how to handle specific extensions. For example, the text/html mime type equates to .htm, .html, and .shtml extensions on most servers, and this tells your browser to interpret all files with those extensions as HTML files. You can alter or add new mime types specifically for your site (note that you can not alter the system defined mime type values). MIME types are often used to handle new technologies as they appear. When WAP technology first appeared no one had these extensions set up on their server. With mime types, however, you could have set it up yourself and begun serving WAP pages immediately.

  • User Defined Mime Types
  • System Mime Types
Mime Type Extension(s)
Some System Mime Types
application/vnd.accpac.simply.imp imp
application/vnd.3gpp2.tcap tcap
application/vnd.jam jam
application/vnd.mophun.certificate mpc
application/vnd.yamaha.hv-script hvs
application/vnd.shana.informed.formtemplate itp
application/vnd.mobius.mqy mqy
application/vnd.intu.qbo qbo
application/atom+xml atom
application/pls+xml pls
application/vnd.ms-powerpoint ppt pps pot
application/vnd.shana.informed.formdata ifm
application/vnd.crick.clicker clkx
application/vnd.enliven nml
application/vnd.ms-asf asf
image/x-portable-pixmap ppm
application/vnd.xara xar
application/vnd.claymore cla
audio/vnd.lucent.voice lvp
application/andrew-inset ez
image/x-pict pic pct
application/vnd.kde.kspread ksp
application/x-compress .Z
text/tab-separated-values tsv
application/vnd.medcalcdata mc1
video/jpm jpm jpgm
application/vnd.wt.stf stf
application/x-ustar ustar
application/vnd.xfdl xfdl
application/vnd.oasis.opendocument.chart odc
text/x-java-source java
application/vnd.ms-wpl wpl
application/vnd.oasis.opendocument.spreadsheet-template ots
application/scvp-vp-response spp
application/vnd.ms-lrm lrm
application/vnd.ms-cab-compressed cab
application/vnd.mobius.msl msl
application/scvp-vp-request spq
application/x-ace-compressed ace
application/pkixcmp pki
application/vnd.spotfire.sfs sfs
video/quicktime qt mov
video/mj2 mj2 mjp2
application/vnd.ezpix-package ez3
image/x-pcx pcx
chemical/x-cif cif
application/x-mspublisher pub
application/vnd.criticaltools.wbs+xml wbs
application/smil+xml smi smil
application/vnd.epson.esf esf
text/html .shtml .shtml html htm shtml
image/gif gif
application/vnd.triscape.mxs mxs
application/vnd.clonk.c4group c4g c4d c4f c4p c4u
application/atomsvc+xml atomsvc
application/x-chess-pgn pgn
audio/x-pn-realaudio-plugin rmp
application/vnd.frogans.ltf ltf
application/vnd.mobius.plc plc
application/vnd.ibm.minipay mpy
application/vnd.olpc-sugar xo
application/vnd.pg.format str
application/vnd.macports.portpkg portpkg
application/octet-stream bin dms lha lzh class so iso dmg dist distz pkg bpk dump elc
text/vnd.wap.wmlscript .wmls wmls
application/x-stuffit sit
application/vnd.businessobjects rep
audio/vnd.nuera.ecelp9600 ecelp9600
application/vnd.lotus-approach apr
application/vnd.kde.kword kwd kwt
application/vnd.fujitsu.oasysgp fg5
image/png png
application/sdp sdp
application/vnd.quark.quarkxpress qxd qxt qwd qwt qxl qxb
application/vnd.novadigm.ext ext
video/vnd.fvt fvt
application/vnd.intu.qfx qfx
application/vnd.lotus-freelance pre
text/plain txt text conf def list log in
image/ief ief
video/mpeg mpeg mpg mpe m1v m2v
application/x-httpd-php php php3 php4 php5 php6
image/x-cmx cmx
application/vnd.jisp jisp
text/richtext rtx
application/vnd.genomatix.tuxedo txd
application/set-registration-initiation setreg
model/iges igs iges
model/vnd.gtw gtw
chemical/x-pdb pdb
text/vnd.sun.j2me.app-descriptor jad
application/vnd.fuzzysheet fzs
application/vnd.solent.sdkm+xml sdkm sdkd
text/vnd.in3d.spot spot
application/vnd.yellowriver-custom-menu cmp
application/pkcs10 p10
application/vnd.lotus-1-2-3 123
application/vnd.lotus-organizer org
application/vnd.google-earth.kml+xml kml
application/vnd.lotus-wordpro lwp
application/mathematica ma nb mb
model/mesh msh mesh silo
application/x-msmetafile wmf
video/x-ms-wm wm
audio/x-ms-wma wma
application/vnd.irepository.package+xml irp
audio/vnd.digital-winds eol
application/vnd.hhe.lesson-player les
application/pkcs7-signature p7s
application/vnd.visio vsd vst vss vsw
video/x-ms-wvx wvx
application/vnd.shana.informed.package ipk
application/vnd.llamagraphics.life-balance.desktop lbd
application/mxf mxf
application/vnd.wap.wmlc .wmlc wmlc
application/x-stuffitx sitx
application/vnd.spotfire.dxp dxp
application/x-pkcs7-crl .crl
application/vnd.webturbo wtb
chemical/x-cml cml
application/wsdl+xml wsdl
application/vnd.cosmocaller cmc
application/vnd.ezpix-album ez2
application/vnd.musician mus
application/vnd.chipnuts.karaoke-mmd mmd
application/vnd.vcx vcx
application/xml-dtd dtd
application/x-mswrite wri
application/vnd.mseq mseq
application/font-tdpfr pfr
application/vnd.mfmp mfm
application/vnd.pvi.ptid1 ptid
application/vnd.oasis.opendocument.presentation-template otp
application/vnd.hp-hpgl hpgl
application/x-pkcs12 p12 pfx
application/vnd.unity unityweb
application/vnd.is-xpr xpr
application/pgp-signature asc sig
application/x-director dcr dir dxr fgd
application/vnd.llamagraphics.life-balance.exchange+xml lbe
application/xhtml+xml xhtml xht
application/vnd.igloader igl
application/vnd.ms-fontobject eot
video/mp4 mp4 mp4v mpg4
application/vnd.sema sema
application/vnd.hp-hps hps
application/vnd.semd semd
application/vnd.semf semf
application/xv+xml mxml xhvml xvml xvm
application/vnd.trueapp tra
application/voicexml+xml vxml
application/vnd.noblenet-directory nnd
application/vnd.muvee.style msty
image/vnd.net-fpx npx
application/vnd.palm prc pdb pqa oprc
application/vnd.dolby.mlp mlp
application/pkix-pkipath pkipath
application/vnd.hp-hpid hpid
application/vnd.nokia.radio-preset rpst
application/vnd.oasis.opendocument.graphics odg
text/x-setext etx
application/vnd.oasis.opendocument.presentation odp
application/vnd.frogans.fnc fnc
application/vnd.3gpp.pic-bw-large plb
application/vnd.yamaha.smaf-phrase spf
text/x-config cnf conf
application/vnd.koan skp skd skt skm
application/vnd.pg.osasli ei6
application/davmount+xml davmount
video/x-msvideo avi
application/vnd.mcd mcd
application/vnd.ipunplugged.rcprofile rcprofile
text/x-c c cc cxx cpp h hh dic
image/vnd.wap.wbmp .wbmp wbmp
application/vnd.crick.clicker.wordbank clkw
audio/vnd.nuera.ecelp4800 ecelp4800
image/vnd.fujixerox.edmics-mmr mmr
chemical/x-csml csml
application/x-x509-ca-cert .crt der crt
application/vnd.oma.dd2+xml dd2
application/pgp-encrypted pgp
application/vnd.tao.intent-module-archive tao
application/vnd.immervision-ivp ivp
application/vnd.eszigno3+xml es3 et3
application/vnd.fujixerox.ddd ddd
application/vnd.kde.kchart chrt
image/x-xbitmap xbm
image/vnd.djvu djvu djv
application/vnd.3gpp.pic-bw-small psb
application/vnd.immervision-ivu ivu
application/vnd.proteus.magazine mgz
application/vnd.adobe.xdp+xml xdp
image/x-rgb rgb
message/rfc822 eml mime
application/vnd.groove-tool-message gtm
application/vnd.fujitsu.oasys oas
application/rls-services+xml rs
application/rdf+xml rdf
application/vnd.lotus-screencam scm
application/vnd.umajin umj
application/vnd.mediastation.cdkey cdkey
application/wspolicy+xml wspolicy
application/vnd.accpac.simply.aso aso
application/vnd.fujitsu.oasysprs bh2
application/x-bittorrent torrent
application/pics-rules prf
application/vnd.crick.clicker.keyboard clkk
application/vnd.simtech-mindmapper twd twds
application/vnd.osgi.dp dp
application/pkix-crl crl
application/x-pkcs7-certificates p7b spc
application/vnd.kenameaapp htke
application/x-futuresplash spl
application/vnd.epson.ssf ssf
application/xslt+xml xslt
application/vnd.epson.quickanime qam
application/mac-binhex40 hqx
image/vnd.ms-modi mdi
application/vnd.epson.salt slt
application/x-ms-wmd wmd
text/x-pascal p pas
application/vnd.oasis.opendocument.text-web oth
image/vnd.fastbidsheet fbs
application/vnd.nokia.n-gage.data ngdat
application/vnd.novadigm.edm edm
chemical/x-cmdf cmdf
application/vnd.ufdl ufd ufdl
text/x-vcalendar vcs
application/x-httpd-php-source phps
application/vnd.rn-realmedia rm
application/vnd.novadigm.edx edx
application/x-ms-wmz wmz
application/vnd.micrografx.flo flo
video/x-fli fli
application/vnd.openofficeorg.extension oxt
application/vnd.lotus-notes nsf
application/vnd.mobius.mbk mbk
application/x-hdf hdf
application/x-msmoney mny
application/resource-lists+xml rl
audio/wav wav
image/x-icon ico
application/vnd.groove-help ghf
application/vnd.syncml.dm+wbxml bdm
application/perl pl plx ppl perl pm
application/vnd.visionary vis
application/vnd.fluxtime.clip ftc
application/vnd.anser-web-funds-transfer-initiation fti
application/vnd.trid.tpt tpt
application/x-csh csh
application/vnd.syncml.dm+xml xdm
image/svg+xml svg svgz
application/x-msschedule scd
application/vnd.kde.kontour kon
application/vnd.ms-artgalry cil
application/vnd.oasis.opendocument.image odi
application/marc mrc
application/vnd.google-earth.kmz kmz
x-conference/x-cooltalk ice
application/vnd.joost.joda-archive joda
application/vnd.kahootz ktz ktr
application/x-wais-source src
application/vnd.mif mif
application/mathml+xml mathml
application/vnd.fujitsu.oasys2 oa2
application/vnd.fujitsu.oasys3 oa3
application/vnd.uoml+xml uoml
application/mbox mbox
application/vnd.shana.informed.interchange iif
application/vnd.yamaha.hv-dic hvd
application/vnd.hp-pclxl pclxl
application/reginfo+xml rif
application/vnd.svd svd
image/vnd.xiff xif
video/3gpp 3gp
application/vnd.3m.post-it-notes pwn
application/vnd.hbci hbci
application/set-payment-initiation setpay
application/rtf rtf
application/x-tar .tgz tar
image/x-xwindowdump xwd
application/vnd.oasis.opendocument.text-template ott
application/vnd.oasis.opendocument.chart-template otc
application/vnd.mobius.daf daf
application/vnd.flographit gph
video/jpeg jpgv
audio/x-mpegurl m3u
text/uri-list uri uris urls
video/h261 h261
application/vnd.data-vision.rdz rdz
application/vnd.nokia.radio-presets rpss
video/h263 h263
video/h264 h264
application/x-msmediaview mvb m13 m14
application/vnd.noblenet-sealer nns
application/vnd.ms-ims ims
image/x-portable-bitmap pbm
application/vnd.acucorp atc acutc
application/json json
application/vnd.oasis.opendocument.text-master otm
application/x-msclip clp
application/vnd.bmi bmi
application/vnd.hp-pcl pcl
application/vnd.crick.clicker.template clkt
model/vnd.vtu vtu
application/vnd.micrografx.igx igx
application/vnd.dreamfactory dfac
application/x-tcl tcl
model/vnd.gdl gdl
application/vnd.fsc.weblaunch fsc
application/vnd.ms-works wps wks wcm wdb
text/x-sql sql
application/vnd.kde.karbon karbon
application/vnd.3gpp.pic-bw-var pvb
image/jpeg jpeg jpg jpe
text/x-uuencode uu
application/vnd.jcp.javame.midlet-rms rms
application/x-sh sh
image/cgm cgm
application/vnd.cinderella cdy
application/rss+xml rss
application/vnd.ctc-posml pml
application/javascript js
application/vnd.smaf mmf
text/css css
application/vnd.noblenet-web nnw
text/csv csv
application/x-gzip .gz .tgz
chemical/x-xyz xyz
application/vnd.seemail see
application/srgs+xml grxml
image/x-portable-anymap pnm
audio/mpeg mpga mp2 mp2a mp3 m2a m3a
application/vnd.uiq.theme utz
application/vnd.publishare-delta-tree qps
application/cgi cgi
application/ccxml+xml ccxml
application/scvp-cv-response scs
application/vnd.denovo.fcselayout-link fe_launch
application/vnd.mophun.application mpn
application/sbml+xml sbml
text/vnd.in3d.3dml 3dml
application/vnd.oasis.opendocument.formula-template otf
text/vnd.wap.wml .wml wml
image/x-cmu-raster ras
image/vnd.fpx fpx
application/x-cdlink vcd
application/vnd.fdf fdf
application/vnd.groove-account gac
application/vnd.intercon.formnet xpw xpx
application/vnd.yamaha.hv-voice hvp
application/x-tex tex
application/x-rar-compressed rar
application/x-dvi dvi
application/x-bzip bz
application/vnd.nokia.n-gage.symbian.install n-gage
application/vnd.oasis.opendocument.image-template oti
application/vnd.neurolanguage.nlu nlu
application/xenc+xml xenc
application/relax-ng-compact-syntax rnc
application/x-mscardfile crd
application/vnd.sus-calendar sus susp
image/vnd.dwg dwg
application/vnd.oasis.opendocument.text odt
application/vnd.yamaha.smaf-audio saf
application/x-bzip2 bz2 boz
application/vnd.audiograph aep
video/3gpp2 3g2
application/oda oda
application/x-msbinder obd
application/prs.cww cww
model/vnd.mts mts
application/vnd.vsf vsf
application/vnd.ms-htmlhelp chm
image/bmp bmp
image/vnd.dxf dxf
application/vnd.pocketlearn plf
application/vnd.kde.kformula kfo
application/hyperstudio stk
application/vnd.dpgraph dpg
application/vnd.previewsystems.box box
application/vnd.antix.game-component atx
application/vnd.amiga.ami ami
application/vnd.tmobile-livetv tmo
application/vnd.kde.kpresenter kpr kpt
application/vnd.ecowin.chart mag
application/vnd.fujixerox.docuworks xdw
application/vnd.wap.wmlscriptc .wmlsc wmlsc
audio/vnd.nuera.ecelp7470 ecelp7470
application/vnd.wqd wqd
application/vnd.syncml+xml xsm
text/x-registry reg
video/vnd.mpegurl mxu m4u
application/vnd.oasis.opendocument.spreadsheet ods
image/x-xpixmap xpm
application/xop+xml xop
application/vnd.apple.installer+xml mpkg
image/vnd.fujixerox.edmics-rlc rlc
application/vnd.handheld-entertainment+xml zmm
application/vnd.blueice.multipass mpm
application/x-msdownload exe dll com bat msi
image/vnd.fst fst
text/vbscript vbs
application/vnd.groove-identity-message gim
image/g3fax g3
text/vnd.fly fly
text/troff t tr roff man me ms
application/x-msaccess mdb
audio/basic au snd
application/vnd.mozilla.xul+xml xul
application/x-sv4cpio sv4cpio
application/x-gtar gtar
audio/x-aiff aif aiff aifc
application/pkix-cert cer
audio/x-ms-wax wax
application/vnd.kde.kivio flw
application/vnd.contact.cmsg cdbcmsg
application/x-bcpio bcpio
application/vnd.acucobol acu
application/sparql-query rq
application/x-sv4crc sv4crc
application/vnd.dna dna
application/vnd.grafeq gqf gqs
application/pdf pdf
application/vnd.fujixerox.docuworks.binder xbd
text/x-vcard vcf
application/ogg ogg
application/vnd.oasis.opendocument.formula odf
application/vnd.crick.clicker.palette clkp
application/x-netcdf nc cdf
application/vnd.hp-jlyt jlt
application/x-texinfo texinfo texi
application/vnd.wordperfect wpd
application/vnd.mobius.dis dis
application/vnd.epson.msf msf
application/sparql-results+xml srx
application/vnd.zzazz.deck+xml zaz
application/vnd.wap.wbxml wbxml
application/vnd.ibm.secure-container sc
text/x-fortran f for f77 f90
text/x-log log
application/vnd.groove-vcard vcg
application/x-latex latex
application/vnd.picsel efif
application/x-img img
application/vnd.mobius.txf txf
application/rsd+xml rsd
application/vnd.hzn-3d-crossword x3d
application/mp4 mp4s
application/x-chat chat
application/xspf+xml xspf
application/ecmascript ecma
audio/x-pn-realaudio ram ra
text/prs.lines.tag dsc
video/x-ms-wmv wmv
video/x-ms-wmx wmx
image/tiff tiff tif
application/ruby rb
application/atomcat+xml atomcat
application/vnd.adobe.xfdf xfdf
application/xml xml xsl
image/x-portable-graymap pgm
text/calendar ics ifb
application/vnd.framemaker fm frame maker
application/x-shockwave-flash swf
application/vnd.oasis.opendocument.graphics-template otg
application/mediaservercontrol+xml mscml
image/vnd.adobe.photoshop psd
video/x-sgi-movie movie
application/x-cpio cpio
application/x-msterminal trm
application/winhlp hlp
application/vnd.ms-project mpp mpt
application/vnd.chemdraw+xml cdxml
chemical/x-cdx cdx
application/x-pkcs7-certreqresp p7r
text/sgml sgml sgm
application/vnd.curl curl
application/vnd.recordare.musicxml mxl
application/vnd.ibm.modcap afp listafp list3820
application/vnd.groove-injector grv
application/msword doc dot
application/vnd.kidspiration kia
application/scvp-cv-request scq
text/x-asm s asm
application/x-shar shar
audio/mp4 mp4a m4p m4a mp4
application/vnd.ms-xpsdocument xps
model/vnd.dwf dwf
video/x-ms-asf asf asx
application/mac-compactpro cpt
application/ssml+xml ssml
application/pkcs7-mime p7m p7c
application/vnd.kinar kne knp
application/shf+xml shf
audio/midi mid midi kar rmi
application/srgs gram
application/vnd.groove-tool-template tpl
application/vnd.ibm.rights-management irm
application/vnd.powerbuilder6 pbd
model/vrml wrl vrml
application/vnd.ms-excel xls xlm xla xlc xlt xlw
application/vnd.mfer mwf
application/postscript ai eps ps
application/vnd.cups-ppd ppd
application/zip zip
image/prs.btif btif
application/vnd.commonspace csp cst
audio/x-wav wav
video/vnd.vivo viv
application/vnd.anser-web-certificate-issue-initiation cii
text/vnd.fmi.flexstor flx
 

What Are Mime Types?

MIME Types tell browsers how to handle specific file extensions. For example, the text/html MIME Types equates to .htm, .html, and .shtml extensions on most servers, telling your browser to interpret all files with those extensions as HTML files. You can alter or add new MIME Types specifically for your site (Note: You cannot alter the system defined MIME Types values). MIME Types are often used to handle new technologies as they appear.

Mime Types can be compared to file extensions on your computer operating system. File extensions tell the operating system how to handle the file and what to open, run or view the file with. However, in the case of Mime Types, it tells the web server that is hosting the file what type of file it is and what to use to open, run or view the file with. Sometimes within the users web browser or e-mail application.

Why Would I Add More Mime Types?

In some instances you may have a file that is not already recognized by the web server. This in turn would mean that the web server will not know how to serve this file to the user. This can result in unexpected behavior. Adding a file extension relationship to a Mime Type will identify that type of file to the web server and what the web server should use so that the user can open, run or view the file on the web server through the application (such as a web browser).

What Kind of Files Do We Mean?

Some examples of Mime Types once they are added are:

Mime Type File Extension(s)
image/jpeg jpeg jpg jpe
video/mpeg mpeg mpg mpe
audio/mpeg mpga mp2 mp3

0 responses:

Post a Comment

Thanking you for your comment(s). Hope you will visit this blog again!

Subscribe to geeklog feed Bookmark and Share

Design by Free blogger template