文件的MIME类型

Posted lfq761204

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了文件的MIME类型相关的知识,希望对你有一定的参考价值。

常用的MIME类型

扩展名类型/子类型
图像文件image/*
声音文件audio/*
视频文件video/*
docapplication/msword
docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
pptapplication/vnd.ms-powerpoint
pptxapplication/vnd.openxmlformats-officedocument.presentationml.presentation
xlsapplication/vnd.ms-excel
xlsxapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet
mdbapplication/x-msaccess
rarapplication/x-rar-compressed
zipapplication/zip
pdfapplication/pdf
chmapplication/vnd.ms-htmlhelp
txttext/plain
rtfapplication/rtf
htmltext/html
xmltext/xml

MIME类型参考手册

扩展名类型/子类型
123application/vnd.lotus-1-2-3
3dmltext/vnd.in3d.3dml
3dsimage/x-3ds
3g2video/3gpp2
3gpvideo/3gpp
7zapplication/x-7z-compressed
aabapplication/x-authorware-bin
aacaudio/x-aac
aamapplication/x-authorware-map
aasapplication/x-authorware-seg
abwapplication/x-abiword
acapplication/pkix-attr-cert
accapplication/vnd.americandynamics.acc
aceapplication/x-ace-compressed
acuapplication/vnd.acucobol
adpaudio/adpcm
aepapplication/vnd.audiograph
afpapplication/vnd.ibm.modcap
aheadapplication/vnd.ahead.space
aiapplication/postscript
aifaudio/x-aiff
airapplication/vnd.adobe.air-application-installer-package+zip
aitapplication/vnd.dvb.ait
amiapplication/vnd.amiga.ami
apkapplication/vnd.android.package-archive
appcachetext/cache-manifest
applicationapplication/x-ms-application
aprapplication/vnd.lotus-approach
arcapplication/x-freearc
ascapplication/pgp-signature
asfvideo/x-ms-asf
asoapplication/vnd.accpac.simply.aso
atcapplication/vnd.acucorp
atomapplication/atom+xml
atomcatapplication/atomcat+xml
atomsvcapplication/atomsvc+xml
atxapplication/vnd.antix.game-component
auaudio/basic
avivideo/x-msvideo
awapplication/applixware
azfapplication/vnd.airzip.filesecure.azf
azsapplication/vnd.airzip.filesecure.azs
azwapplication/vnd.amazon.ebook
bcpioapplication/x-bcpio
bdfapplication/x-font-bdf
bdmapplication/vnd.syncml.dm+wbxml
bedapplication/vnd.realvnc.bed
bh2application/vnd.fujitsu.oasysprs
binapplication/octet-stream
blbapplication/x-blorb
bmiapplication/vnd.bmi
bmpimage/bmp
boxapplication/vnd.previewsystems.box
btifimage/prs.btif
bzapplication/x-bzip
bz2application/x-bzip2
ctext/x-c
c11amcapplication/vnd.cluetrust.cartomobile-config
c11amzapplication/vnd.cluetrust.cartomobile-config-pkg
c4gapplication/vnd.clonk.c4group
cabapplication/vnd.ms-cab-compressed
cafaudio/x-caf
carapplication/vnd.curl.car
catapplication/vnd.ms-pki.seccat
cbrapplication/x-cbr
ccxmlapplication/ccxml+xml
cdbcmsgapplication/vnd.contact.cmsg
cdkeyapplication/vnd.mediastation.cdkey
cdmiaapplication/cdmi-capability
cdmicapplication/cdmi-container
cdmidapplication/cdmi-domain
cdmioapplication/cdmi-object
cdmiqapplication/cdmi-queue
cdxchemical/x-cdx
cdxmlapplication/vnd.chemdraw+xml
cdyapplication/vnd.cinderella
cerapplication/pkix-cert
cfsapplication/x-cfs-compressed
cgmimage/cgm
chatapplication/x-chat
chmapplication/vnd.ms-htmlhelp
chrtapplication/vnd.kde.kchart
cifchemical/x-cif
ciiapplication/vnd.anser-web-certificate-issue-initiation
cilapplication/vnd.ms-artgalry
claapplication/vnd.claymore
classapplication/java-vm
clkkapplication/vnd.crick.clicker.keyboard
clkpapplication/vnd.crick.clicker.palette
clktapplication/vnd.crick.clicker.template
clkwapplication/vnd.crick.clicker.wordbank
clkxapplication/vnd.crick.clicker
clpapplication/x-msclip
cmcapplication/vnd.cosmocaller
cmdfchemical/x-cmdf
cmlchemical/x-cml
cmpapplication/vnd.yellowriver-custom-menu
cmximage/x-cmx
codapplication/vnd.rim.cod
cpioapplication/x-cpio
cptapplication/mac-compactpro
crdapplication/x-mscardfile
crlapplication/pkix-crl
cryptonoteapplication/vnd.rig.cryptonote
cshapplication/x-csh
csmlchemical/x-csml
cspapplication/vnd.commonspace
csstext/css
csvtext/csv
cuapplication/cu-seeme
curltext/vnd.curl
cwwapplication/prs.cww
daemodel/vnd.collada+xml
dafapplication/vnd.mobius.daf
dartapplication/vnd.dart
davmountapplication/davmount+xml
dbkapplication/docbook+xml
dcurltext/vnd.curl.dcurl
dd2application/vnd.oma.dd2+xml
dddapplication/vnd.fujixerox.ddd
debapplication/x-debian-package
derapplication/x-x509-ca-cert
dfacapplication/vnd.dreamfactory
dgcapplication/x-dgc-compressed
dirapplication/x-director
disapplication/vnd.mobius.dis
djvuimage/vnd.djvu
dmgapplication/x-apple-diskimage
dnaapplication/vnd.dna
docapplication/msword
docmapplication/vnd.ms-word.document.macroenabled.12
docxapplication/vnd.openxmlformats-officedocument.wordprocessingml.document
dotmapplication/vnd.ms-word.template.macroenabled.12
dotxapplication/vnd.openxmlformats-officedocument.wordprocessingml.template
dpapplication/vnd.osgi.dp
dpgapplication/vnd.dpgraph
draaudio/vnd.dra
dsctext/prs.lines.tag
dsscapplication/dssc+der
dtbapplication/x-dtbook+xml
dtdapplication/xml-dtd
dtsaudio/vnd.dts
dtshdaudio/vnd.dts.hd
dvbvideo/vnd.dvb.file
dviapplication/x-dvi
dwfmodel/vnd.dwf
dwgimage/vnd.dwg
dxfimage/vnd.dxf
dxpapplication/vnd.spotfire.dxp
ecelp4800audio/vnd.nuera.ecelp4800
ecelp7470audio/vnd.nuera.ecelp7470
ecelp9600audio/vnd.nuera.ecelp9600
ecmaapplication/ecmascript
edmapplication/vnd.novadigm.edm
edxapplication/vnd.novadigm.edx
efifapplication/vnd.picsel
ei6application/vnd.pg.osasli
emlmessage/rfc822
emmaapplication/emma+xml
eolaudio/vnd.digital-winds
eotapplication/vnd.ms-fontobject
epubapplication/epub+zip
es3application/vnd.eszigno3+xml
esaapplication/vnd.osgi.subsystem
esfapplication/vnd.epson.esf
etxtext/x-setext
evaapplication/x-eva
evyapplication/x-envoy
exeapplication/x-msdownload
exiapplication/exi
extapplication/vnd.novadigm.ext
ezapplication/andrew-inset
ez2application/vnd.ezpix-album
ez3application/vnd.ezpix-package
ftext/x-fortran
f4vvideo/x-f4v
fbsimage/vnd.fastbidsheet
fcdtapplication/vnd.adobe.formscentral.fcdt
fcsapplication/vnd.isac.fcs
fdfapplication/vnd.fdf
fe_launchapplication/vnd.denovo.fcselayout-link
fg5application/vnd.fujitsu.oasysgp
fhimage/x-freehand
figapplication/x-xfig
flacaudio/x-flac
flivideo/x-fli
floapplication/vnd.micrografx.flo
flvvideo/x-flv
flwapplication/vnd.kde.kivio
flxtext/vnd.fmi.flexstor
flytext/vnd.fly
fmapplication/vnd.framemaker
fncapplication/vnd.frogans.fnc
fpximage/vnd.fpx
fscapplication/vnd.fsc.weblaunch
fstimage/vnd.fst
ftcapplication/vnd.fluxtime.clip
ftiapplication/vnd.anser-web-funds-transfer-initiation
fvtvideo/vnd.fvt
fxpapplication/vnd.adobe.fxp
fzsapplication/vnd.fuzzysheet
g2wapplication/vnd.geoplan
g3image/g3fax
g3wapplication/vnd.geospace
gacapplication/vnd.groove-account
gamapplication/x-tads
gbrapplication/rpki-ghostbusters
gcaapplication/x-gca-compressed
gdlmodel/vnd.gdl
geoapplication/vnd.dynageo
gexapplication/vnd.geometry-explorer
ggbapplication/vnd.geogebra.file
ggtapplication/vnd.geogebra.tool
ghfapplication/vnd.groove-help
gifimage/gif
gimapplication/vnd.groove-identity-message
gmlapplication/gml+xml
gmxapplication/vnd.gmx
gnumericapplication/x-gnumeric
gphapplication/vnd.flographit
gpxapplication/gpx+xml
gqfapplication/vnd.grafeq
gramapplication/srgs
grampsapplication/x-gramps-xml
grvapplication/vnd.groove-injector
grxmlapplication/srgs+xml
gsfapplication/x-font-ghostscript
gtarapplication/x-gtar
gtmapplication/vnd.groove-tool-message
gtwmodel/vnd.gtw
gvtext/vnd.graphviz
gxfapplication/gxf
gxtapplication/vnd.geonext
h261video/h261
h263video/h263
h264video/h264
halapplication/vnd.hal+xml
hbciapplication/vnd.hbci
hdfapplication/x-hdf
hlpapplication/winhlp
hpglapplication/vnd.hp-hpgl
hpidapplication/vnd.hp-hpid
hpsapplication/vnd.hp-hps
hqxapplication/mac-binhex40
htkeapplication/vnd.kenameaapp
htmltext/html
hvdapplication/vnd.yamaha.hv-dic
hvpapplication/vnd.yamaha.hv-voice
hvsapplication/vnd.yamaha.hv-script
i2gapplication/vnd.intergeo
iccapplication/vnd.iccprofile
icex-conference/x-cooltalk
icoimage/x-icon
icstext/calendar
iefimage/ief
ifmapplication/vnd.shana.informed.formdata
iglapplication/vnd.igloader
igmapplication/vnd.insors.igm
igsmodel/iges
igxapplication/vnd.micrografx.igx
iifapplication/vnd.shana.informed.interchange
impapplication/vnd.accpac.simply.imp
imsapplication/vnd.ms-ims
inkapplication/inkml+xml
installapplication/x-install-instructions
iotaapplication/vnd.astraea-software.iota
ipfixapplication/ipfix
ipkapplication/vnd.shana.informed.package以上是关于文件的MIME类型的主要内容,如果未能解决你的问题,请参考以下文章

java 通过文件后缀名/ URL /文件路径/ MIME获取并判断该文件是什么类型(视频/图像...)

在 DRUPAL 中验证 PDF 文件上传中的 MIME 类型

将 MIME 类型转换为文件扩展名 PHP

文件的MIME类型

文件的MIME类型

文件的MIME类型

(c)2006-2024 SYSTEM All Rights Reserved IT常识