1. mime type description
Multi-purpose Internet Mail Extension (MIME, Multipurpose Internet Mail Extensions) is an Internet standard that extends the email standard, it supports mail messages in multiple formats, such as non-ASCII characters and binary format attachments.
Content-Type. This header field is used to specify the message Type. Generally. [Type]/[subtype]
Type has the following format.
Text: indicates the standardized representation of Text information. Text messages can be in multiple character sets or formats;
Multipart: connects multiple parts of the message body to form a message. These parts can be different types of data;
Application: used to transmit Application data or binary data;
Message: Used to package an E-mail Message;
Image: used to transmit static Image data;
Audio: used to transmit Audio or Audio data;
Video: used to transmit dynamic image data. It can be a Video data format edited together with audio.
Subtype is used to specify the type details. The set of content-type/subtype pairs and related parameters will increase over time. To ensure that these values are developed in an orderly and open state, MIME uses Internet Assigned Numbers Authority (IANA) as the central registration mechanism to manage these values. Common subtype values are as follows:
Text/plain (plain text)
Text/html (HTML document)
Application/xhtml + xml (XHTML document)
Image/gif (GIF image)
Image/jpeg (JPEG image) [image/pjpeg in PHP]
Image/png (PNG image) [image/x-png in PHP]
Video/mpeg (MPEG animation)
Application/octet-stream (any binary data)
Application/pdf (PDF)
Application/msword (Microsoft Word file)
Message/rfc822 (RFC 822 format)
Multipart/alternative (HTML form and plain text form of HTML mail, the same content is expressed in different forms)
Application/x-www-form-urlencoded (form submitted using the http post method)
Multipart/form-data (same as above, but mainly used when the form is submitted along with file upload)
2. Common MIME Type tables
3gp video/3gpp
Aab application/x-authoware-bin
Aam application/x-authoware-map
Aas application/x-authoware-seg
Ai application/postscript
Aif audio/x-aiff
Aifc audio/x-aiff
Aiff audio/x-aiff
Als audio/X-Alpha5
Amc application/x-mpeg
Ani application/octet-stream
Apk application/vnd. android. package-archive
Asc text/plain
Asd application/astound
Asf video/x-ms-asf
Asn application/astound
Asp application/x-asap
Asx video/x-ms-asf
Au audio/basic
Avb application/octet-stream
Avi video/x-msvideo
Awb audio/amr-wb
Bcpio application/x-bcpio
Bin application/octet-stream
Bld application/bld
Bld2 application/bld2
Bmp image/bmp
Bpk application/octet-stream
Bz2 applications/x-bzip2
Cal image/x-cals
Ccn application/x-cnc
Cco application/x-cocoa
Cdf application/x-netcdf
Cgi magnus-internal/cgi
Chat application/x-chat
Class application/octet-stream
Clp application/x-msclip
Cmx application/x-cmx
Co application/x-cult3d-object
Cod image/cis-cod
Cpio application/x-cpio
Cpt application/mac-compactpro
Crd application/x-mscardfile
Csh application/x-csh
Csm chemical/x-csml
Csml chemical/x-csml
Css text/css
Cur application/octet-stream
Dcm x-lml/x-evm
Dcr application/x-director
Dcx image/x-dcx
Dhtml text/html
Dir application/x-director
Dll application/octet-stream
Dmg application/octet-stream
Dms application/octet-stream
Doc application/msword
Dot application/x-dot
Dvi application/x-dvi
Dwf drawing/x-dwf
Dwg application/x-autocad
Dxf application/x-autocad
Dxr application/x-director
Ebk application/x-expandedbook
Emb chemical/x-embl-dl-nucleus otide
Embl chemical/x-embl-dl-nucleus otide
Eps application/postscript
Eri image/x-eri
Es audio/echospeech
Esl audio/echospeech
Etc application/x-earthtime
Etx text/x-setext
Evm x-lml/x-evm
Evy application/x-envoy
Exe application/octet-stream
Fh4 image/x-freehand
Fh5 image/x-freehand
Fhc image/x-freehand
Fif image/fif
Fm application/x-maker
Fpx image/x-fpx
Fvi video/isivideo
Gau chemical/x-gaussian-input
Gca application/x-gca-compressed
Gdb x-lml/x-gdb
Gif image/gif
Gps application/x-gps
Gtar application/x-gtar
Gz application/x-gzip
Hdf application/x-hdf
Hdm text/x-hdml
Hdml text/x-hdml
Hlp application/winhlp
Hqx application/mac-binhex40
Htm text/html
Html text/html
Hts text/html
Ice x-conference/x-cooltalk
Ico application/octet-stream
Ief image/ief
Ifm image/gif
Ifs image/ifs
Imy audio/melody
Ins application/x-NET-Install
Ips application/x-ipscript
Ipx application/x-ipix
It audio/x-mod
Itz audio/x-mod
Ivr I-world/I-Fig
J2k image/j2k
Jad text/vnd. sun. J2EE. app-descriptor
Jam application/x-jam
Jar application/java-archive
Jnlp application/x-java-jnlp-file
Jpe image/jpeg
Jpeg image/jpeg
Jpg image/jpeg
Jpz image/jpeg
Js application/x-javascript
Jwc application/jwc
Kjx application/x-kjx
AKs x-lml/x-aks
Latex application/x-latex
Lcc application/fastman
Lcl application/x-digitalloca
Lcr application/x-digitalloca
Lgh application/lgh
Lha application/octet-stream
Lml x-lml/x-lml
Lmlpack x-lml/x-lmlpack
Lsf video/x-ms-asf
Lsx video/x-ms-asf
Lzh application/x-lzh
M13 application/x-msmediaview
M14 application/x-msmediaview
M15 audio/x-mod
M3u audio/x-mpegurl
M3url audio/x-mpegurl
Ma1 audio/ma1
Ma2 audio/ma2
Ma3 audio/ma3
Ma5 audio/ma5
Man application/x-troff-man
Map magnus-internal/imagemap
Mbd application/mbedlet
Mct application/x-mascot
Mdb application/x-msaccess
Mdz audio/x-mod
Me application/x-troff-me
Mel text/x-vmel
Mi application/x-mif
Mid audio/midi
Midi audio/midi
Mif application/x-mif
Mil image/x-cals
Mio audio/x-mio
Mmf application/x-skt-lbs
Mng video/x-mng
Mny application/x-msmoney
Moc application/x-mocha
Mocha application/x-mocha
Mod audio/x-mod
Mof application/x-yumekara
Mol chemical/x-mdl-molfile
Mop chemical/x-mopac-input
Mov video/quicktime
Movie video/x-sgi-movie
Mp2 audio/x-mpeg
Mp3 audio/x-mpeg
Mp4 video/mp4
Nmapplication/vnd. mpohun. certificate
Mpe video/mpeg
Mpeg video/mpeg
Mpg video/mpeg
Mpg4 video/mp4
Mpga audio/mpeg
Mpn application/vnd. mophun. application
Mpp application/vnd. ms-project
Mps application/x-mapserver
Mrl text/x-mrml
Mrm application/x-mrm
Ms application/x-troff-ms
Mts application/metastream
CTX application/metastream
Mtz application/metastream
Mzv application/metastream
Nar application/zip
Nbmp image/nbmp
Nc application/x-netcdf
Ndb x-lml/x-ndb
Ndwn application/ndwn
Nif application/x-nif
Nmz application/x-scream
Nokia-op-logo image/vnd. nok-oplogo-color
Npx application/x-netfpx
Nsnd audio/nsnd
Nva application/x-neva1
Oda application/oda
Oom application/x-AtlasMate-Plugin
Pac audio/x-pac
Pae audio/x-epac
Pan application/x-pan
Pbm image/x-portable-bitmap
Pcx image/x-pcx
Pda image/x-pda
Pdb chemical/x-pdb
Pdf application/pdf
Pfr application/font-tdpfr
Pgm image/x-portable-graymap
Pict image/x-pict
Pm application/x-perl
Pmd application/x-pmd
Png image/png
Pnm image/x-portable-anymap
Pnz image/png
Pot application/vnd. ms-powerpoint
Ppm image/x-portable-pixmap
Pps application/vnd. ms-powerpoint
Ppt application/vnd. ms-powerpoint
Pqf application/x-cprplayer
Pqi application/cprplayer
Prc application/x-prc
Proxy application/x-ns-proxy-autoconfig
Ps application/postscript
Ptlk application/listenup
Pub application/x-mspublisher
Pvx video/x-pv-pvx
Qcp audio/vnd. qcelp
Qt video/quicktime
Qti image/x-quicktime
Qtif image/x-quicktime
R3t text/vnd. rn-realtext3d
Ra audio/x-pn-realaudio
Ram audio/x-pn-realaudio
Rar application/x-rar-compressed
Ras image/x-cmu-raster
Rdf application/rdf + xml
Rf image/vnd. rn-realflash
Rgb image/x-rgb
Rlf application/x-richlink
Rm audio/x-pn-realaudio
Rmf audio/x-rmf
Rmm audio/x-pn-realaudio
Rmvb audio/x-pn-realaudio
Rnx application/vnd. rn-realplayer
Roff application/x-troff
Rp image/vnd. rn-realpix
Rpm audio/x-pn-realaudio-plugin
Rt text/vnd. rn-realtext
Rte x-lml/x-gps
Rtf application/rtf
Rtg application/metastream
Rtx text/richtext
Rv video/vnd. rn-realvideo
Rwc application/x-rogerwilco
S3m audio/x-mod
S3z audio/x-mod
Sca application/x-supercard
Scd application/x-msschedule
Sdf application/e-score
Sea application/x-stuffit
Sgm text/x-sgml
Sgml text/x-sgml
Sh application/x-sh
Shar application/x-shar
Shtml magnus-internal/parsed-html
Shw application/presentations
Si6 image/si6
Si7 image/vnd. stiwap. sis
Si9 image/vnd. lgtwap. sis
Sis application/vnd. symbian. install
Sit application/x-stuffit
Skd application/x-Koan
Skm application/x-Koan
Skp application/x-Koan
Skt application/x-Koan
Slc application/x-salsa
Smd audio/x-smd
Smi application/smil
Smil application/smil
Smp application/studiom
Smz audio/x-smd
Snd audio/basic
Spc text/x-speech
Spl application/futuresplash
Spr application/x-sprite
Sprite application/x-sprite
Spt application/x-spt
Src application/x-wais-source
Stk application/hyperstudio
Stm audio/x-mod
Sv4cpio application/x-sv4cpio
Sv4crc application/x-sv4crc
Svf image/vnd
Svg image/svg-xml
Svh image/svh
Svr x-world/x-svr
Swf application/x-shockwave-flash
Swfl application/x-shockwave-flash
T application/x-troff
Tad application/octet-stream
Talk text/x-speech
Tar application/x-tar
Taz application/x-tar
Tbp application/x-timbuktu
Tbt application/x-timbuktu
Tcl application/x-tcl
Tex application/x-tex
Texi application/x-texinfo
Texinfo application/x-texinfo
Tgz application/x-tar
Thm application/vnd. eri. thm
Tif image/tiff
Tiff image/tiff
Tki application/x-tkined
Tkined application/x-tkined
Toc application/toc
Toy image/toy
Tr application/x-troff
Trk x-lml/x-gps
Trm application/x-msterminal
Tsi audio/tsplayer
Tsp application/dsptype
Tsv text/tab-separated-values
Tsv text/tab-separated-values
Ttf application/octet-stream
Ttz application/t-time
Txt text/plain
Ult audio/x-mod
Ustar application/x-ustar
Uu application/x-uuencode
Uue application/x-uuencode
Vcd application/x-cdlink
Vcf text/x-vcard
Vdo video/vdo
Vib audio/vib
Viv video/vivo
Vivo video/vivo
Vmd application/vocaltec-media-desc
Vmf application/vocaltec-media-file
Vmi application/x-dreamcast-vms-info
Vms application/x-dreamcast-vms
Vox audio/voxware
Vqe audio/x-twinvq-plugin
Vqf audio/x-twinvq
Vql audio/x-twinvq
Vre x-world/x-vream
Fig x-world/x-Fig
Vrt x-world/x-vrt
Vrw x-world/x-vream
Vts workbook/formulaone
Wav audio/x-wav
Wax audio/x-ms-wax
Wbmp image/vnd. wap. wbmp
Web application/vnd. xara
Wi image/wavelet
Wis application/x-InstallShield
Wm video/x-ms-wm
Wma audio/x-ms-wma
Wmd application/x-ms-wmd
Wmf application/x-msmetafile
Wml text/vnd. wap. wml
Wmlc application/vnd. wap. wmlc
Wmls text/vnd. wap. wmlscript
Wmlsc application/vnd. wap. wmlscriptc
Wmlscript text/vnd. wap. wmlscript
Wmv audio/x-ms-wmv
Wmx video/x-ms-wmx
Wmz application/x-ms-wmz
Wpng image/x-up-wpng
Wpt x-lml/x-gps
Wri application/x-mswrite
Wrl x-world/x-Fig
Wrz x-world/x-Fig
Ws text/vnd. wap. wmlscript
Wsc application/vnd. wap. wmlscriptc
Wv video/wavelet
Wvx video/x-ms-wvx
Wxl application/x-wxl
X-gzip application/x-gzip
Xar application/vnd. xara
Xbm image/x-xbitmap
Xdm application/x-xdma
Xdma application/x-xdma
Xdw application/vnd.fujixerox.doc uworks
Xht application/xhtml + xml
Xhtm application/xhtml + xml
Xhtml application/xhtml + xml
Xla application/vnd. ms-excel
Xlc application/vnd. ms-excel
Xll application/x-excel
Xlm application/vnd. ms-excel
Xls application/vnd. ms-excel
Xlt application/vnd. ms-excel
Xlw application/vnd. ms-excel
Xm audio/x-mod
Xml text/xml
Xmz audio/x-mod
Xpi application/x-xpinstall
Xpm image/x-xpixmap
Xsit text/xml
Xsl text/xml
Xul text/xul
Xwd image/x-xwindowdump
Xyz chemical/x-pdb
Yz1 application/x-yz1
Z application/x-compress
Zac application/x-zaurus-zac
Zip application/zip
Excerpt from advancing with the times