文件的MIME类型
Posted lfq761204
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了文件的MIME类型相关的知识,希望对你有一定的参考价值。
常用的MIME类型
扩展名 | 类型/子类型 |
图像文件 | image/* |
声音文件 | audio/* |
视频文件 | video/* |
doc | application/msword |
docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
ppt | application/vnd.ms-powerpoint |
pptx | application/vnd.openxmlformats-officedocument.presentationml.presentation |
xls | application/vnd.ms-excel |
xlsx | application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
mdb | application/x-msaccess |
rar | application/x-rar-compressed |
zip | application/zip |
application/pdf | |
chm | application/vnd.ms-htmlhelp |
txt | text/plain |
rtf | application/rtf |
html | text/html |
xml | text/xml |
MIME类型参考手册
扩展名 | 类型/子类型 |
123 | application/vnd.lotus-1-2-3 |
3dml | text/vnd.in3d.3dml |
3ds | image/x-3ds |
3g2 | video/3gpp2 |
3gp | video/3gpp |
7z | application/x-7z-compressed |
aab | application/x-authorware-bin |
aac | audio/x-aac |
aam | application/x-authorware-map |
aas | application/x-authorware-seg |
abw | application/x-abiword |
ac | application/pkix-attr-cert |
acc | application/vnd.americandynamics.acc |
ace | application/x-ace-compressed |
acu | application/vnd.acucobol |
adp | audio/adpcm |
aep | application/vnd.audiograph |
afp | application/vnd.ibm.modcap |
ahead | application/vnd.ahead.space |
ai | application/postscript |
aif | audio/x-aiff |
air | application/vnd.adobe.air-application-installer-package+zip |
ait | application/vnd.dvb.ait |
ami | application/vnd.amiga.ami |
apk | application/vnd.android.package-archive |
appcache | text/cache-manifest |
application | application/x-ms-application |
apr | application/vnd.lotus-approach |
arc | application/x-freearc |
asc | application/pgp-signature |
asf | video/x-ms-asf |
aso | application/vnd.accpac.simply.aso |
atc | application/vnd.acucorp |
atom | application/atom+xml |
atomcat | application/atomcat+xml |
atomsvc | application/atomsvc+xml |
atx | application/vnd.antix.game-component |
au | audio/basic |
avi | video/x-msvideo |
aw | application/applixware |
azf | application/vnd.airzip.filesecure.azf |
azs | application/vnd.airzip.filesecure.azs |
azw | application/vnd.amazon.ebook |
bcpio | application/x-bcpio |
bdf | application/x-font-bdf |
bdm | application/vnd.syncml.dm+wbxml |
bed | application/vnd.realvnc.bed |
bh2 | application/vnd.fujitsu.oasysprs |
bin | application/octet-stream |
blb | application/x-blorb |
bmi | application/vnd.bmi |
bmp | image/bmp |
box | application/vnd.previewsystems.box |
btif | image/prs.btif |
bz | application/x-bzip |
bz2 | application/x-bzip2 |
c | text/x-c |
c11amc | application/vnd.cluetrust.cartomobile-config |
c11amz | application/vnd.cluetrust.cartomobile-config-pkg |
c4g | application/vnd.clonk.c4group |
cab | application/vnd.ms-cab-compressed |
caf | audio/x-caf |
car | application/vnd.curl.car |
cat | application/vnd.ms-pki.seccat |
cbr | application/x-cbr |
ccxml | application/ccxml+xml |
cdbcmsg | application/vnd.contact.cmsg |
cdkey | application/vnd.mediastation.cdkey |
cdmia | application/cdmi-capability |
cdmic | application/cdmi-container |
cdmid | application/cdmi-domain |
cdmio | application/cdmi-object |
cdmiq | application/cdmi-queue |
cdx | chemical/x-cdx |
cdxml | application/vnd.chemdraw+xml |
cdy | application/vnd.cinderella |
cer | application/pkix-cert |
cfs | application/x-cfs-compressed |
cgm | image/cgm |
chat | application/x-chat |
chm | application/vnd.ms-htmlhelp |
chrt | application/vnd.kde.kchart |
cif | chemical/x-cif |
cii | application/vnd.anser-web-certificate-issue-initiation |
cil | application/vnd.ms-artgalry |
cla | application/vnd.claymore |
class | application/java-vm |
clkk | application/vnd.crick.clicker.keyboard |
clkp | application/vnd.crick.clicker.palette |
clkt | application/vnd.crick.clicker.template |
clkw | application/vnd.crick.clicker.wordbank |
clkx | application/vnd.crick.clicker |
clp | application/x-msclip |
cmc | application/vnd.cosmocaller |
cmdf | chemical/x-cmdf |
cml | chemical/x-cml |
cmp | application/vnd.yellowriver-custom-menu |
cmx | image/x-cmx |
cod | application/vnd.rim.cod |
cpio | application/x-cpio |
cpt | application/mac-compactpro |
crd | application/x-mscardfile |
crl | application/pkix-crl |
cryptonote | application/vnd.rig.cryptonote |
csh | application/x-csh |
csml | chemical/x-csml |
csp | application/vnd.commonspace |
css | text/css |
csv | text/csv |
cu | application/cu-seeme |
curl | text/vnd.curl |
cww | application/prs.cww |
dae | model/vnd.collada+xml |
daf | application/vnd.mobius.daf |
dart | application/vnd.dart |
davmount | application/davmount+xml |
dbk | application/docbook+xml |
dcurl | text/vnd.curl.dcurl |
dd2 | application/vnd.oma.dd2+xml |
ddd | application/vnd.fujixerox.ddd |
deb | application/x-debian-package |
der | application/x-x509-ca-cert |
dfac | application/vnd.dreamfactory |
dgc | application/x-dgc-compressed |
dir | application/x-director |
dis | application/vnd.mobius.dis |
djvu | image/vnd.djvu |
dmg | application/x-apple-diskimage |
dna | application/vnd.dna |
doc | application/msword |
docm | application/vnd.ms-word.document.macroenabled.12 |
docx | application/vnd.openxmlformats-officedocument.wordprocessingml.document |
dotm | application/vnd.ms-word.template.macroenabled.12 |
dotx | application/vnd.openxmlformats-officedocument.wordprocessingml.template |
dp | application/vnd.osgi.dp |
dpg | application/vnd.dpgraph |
dra | audio/vnd.dra |
dsc | text/prs.lines.tag |
dssc | application/dssc+der |
dtb | application/x-dtbook+xml |
dtd | application/xml-dtd |
dts | audio/vnd.dts |
dtshd | audio/vnd.dts.hd |
dvb | video/vnd.dvb.file |
dvi | application/x-dvi |
dwf | model/vnd.dwf |
dwg | image/vnd.dwg |
dxf | image/vnd.dxf |
dxp | application/vnd.spotfire.dxp |
ecelp4800 | audio/vnd.nuera.ecelp4800 |
ecelp7470 | audio/vnd.nuera.ecelp7470 |
ecelp9600 | audio/vnd.nuera.ecelp9600 |
ecma | application/ecmascript |
edm | application/vnd.novadigm.edm |
edx | application/vnd.novadigm.edx |
efif | application/vnd.picsel |
ei6 | application/vnd.pg.osasli |
eml | message/rfc822 |
emma | application/emma+xml |
eol | audio/vnd.digital-winds |
eot | application/vnd.ms-fontobject |
epub | application/epub+zip |
es3 | application/vnd.eszigno3+xml |
esa | application/vnd.osgi.subsystem |
esf | application/vnd.epson.esf |
etx | text/x-setext |
eva | application/x-eva |
evy | application/x-envoy |
exe | application/x-msdownload |
exi | application/exi |
ext | application/vnd.novadigm.ext |
ez | application/andrew-inset |
ez2 | application/vnd.ezpix-album |
ez3 | application/vnd.ezpix-package |
f | text/x-fortran |
f4v | video/x-f4v |
fbs | image/vnd.fastbidsheet |
fcdt | application/vnd.adobe.formscentral.fcdt |
fcs | application/vnd.isac.fcs |
fdf | application/vnd.fdf |
fe_launch | application/vnd.denovo.fcselayout-link |
fg5 | application/vnd.fujitsu.oasysgp |
fh | image/x-freehand |
fig | application/x-xfig |
flac | audio/x-flac |
fli | video/x-fli |
flo | application/vnd.micrografx.flo |
flv | video/x-flv |
flw | application/vnd.kde.kivio |
flx | text/vnd.fmi.flexstor |
fly | text/vnd.fly |
fm | application/vnd.framemaker |
fnc | application/vnd.frogans.fnc |
fpx | image/vnd.fpx |
fsc | application/vnd.fsc.weblaunch |
fst | image/vnd.fst |
ftc | application/vnd.fluxtime.clip |
fti | application/vnd.anser-web-funds-transfer-initiation |
fvt | video/vnd.fvt |
fxp | application/vnd.adobe.fxp |
fzs | application/vnd.fuzzysheet |
g2w | application/vnd.geoplan |
g3 | image/g3fax |
g3w | application/vnd.geospace |
gac | application/vnd.groove-account |
gam | application/x-tads |
gbr | application/rpki-ghostbusters |
gca | application/x-gca-compressed |
gdl | model/vnd.gdl |
geo | application/vnd.dynageo |
gex | application/vnd.geometry-explorer |
ggb | application/vnd.geogebra.file |
ggt | application/vnd.geogebra.tool |
ghf | application/vnd.groove-help |
gif | image/gif |
gim | application/vnd.groove-identity-message |
gml | application/gml+xml |
gmx | application/vnd.gmx |
gnumeric | application/x-gnumeric |
gph | application/vnd.flographit |
gpx | application/gpx+xml |
gqf | application/vnd.grafeq |
gram | application/srgs |
gramps | application/x-gramps-xml |
grv | application/vnd.groove-injector |
grxml | application/srgs+xml |
gsf | application/x-font-ghostscript |
gtar | application/x-gtar |
gtm | application/vnd.groove-tool-message |
gtw | model/vnd.gtw |
gv | text/vnd.graphviz |
gxf | application/gxf |
gxt | application/vnd.geonext |
h261 | video/h261 |
h263 | video/h263 |
h264 | video/h264 |
hal | application/vnd.hal+xml |
hbci | application/vnd.hbci |
hdf | application/x-hdf |
hlp | application/winhlp |
hpgl | application/vnd.hp-hpgl |
hpid | application/vnd.hp-hpid |
hps | application/vnd.hp-hps |
hqx | application/mac-binhex40 |
htke | application/vnd.kenameaapp |
html | text/html |
hvd | application/vnd.yamaha.hv-dic |
hvp | application/vnd.yamaha.hv-voice |
hvs | application/vnd.yamaha.hv-script |
i2g | application/vnd.intergeo |
icc | application/vnd.iccprofile |
ice | x-conference/x-cooltalk |
ico | image/x-icon |
ics | text/calendar |
ief | image/ief |
ifm | application/vnd.shana.informed.formdata |
igl | application/vnd.igloader |
igm | application/vnd.insors.igm |
igs | model/iges |
igx | application/vnd.micrografx.igx |
iif | application/vnd.shana.informed.interchange |
imp | application/vnd.accpac.simply.imp |
ims | application/vnd.ms-ims |
ink | application/inkml+xml |
install | application/x-install-instructions |
iota | application/vnd.astraea-software.iota |
ipfix | application/ipfix |
ipk | application/vnd.shana.informed.package 以上是关于文件的MIME类型的主要内容,如果未能解决你的问题,请参考以下文章 java 通过文件后缀名/ URL /文件路径/ MIME获取并判断该文件是什么类型(视频/图像...) |