西西軟件下載最安全的下載網(wǎng)站、值得信賴的軟件下載站!

首頁西西教程操作系統(tǒng) → IIS添加MIME擴(kuò)展類型及常用的MIME類型列表

IIS添加MIME擴(kuò)展類型及常用的MIME類型列表

相關(guān)軟件相關(guān)文章發(fā)表評論 來源:西西整理時(shí)間:2013/1/15 12:30:26字體大。A-A+

作者:西西點(diǎn)擊:0次評論:0次標(biāo)簽: MIME iis

亂碼查看器2.6 綠色版
  • 類型:編程輔助大小:287KB語言:中文 評分:6.1
  • 標(biāo)簽:
立即下載

經(jīng)常我在用IIS做為下載服務(wù)器的時(shí)候有時(shí)傳上去的文件比如 xxx.iso 文件名名是傳上去了,但是用http打開的時(shí)候確顯示為 404 文件不存在。

這其實(shí)是IIS對文件的一種保護(hù),不在IIS指定的MIME類型里的文件顯不會操作。

覺見的有 mp4 / flv / iso / 7z / apk 等擴(kuò)展名的文件 iis 本身是沒有指定MIME類型的,這類文件默認(rèn)在IIS里是不能下載的。

 我們可以打開IIS 在 xx本地服務(wù)器上 右鍵 -> 屬性 然后在 MIME類型 中查看已經(jīng)的MIME格式

比如我們需要IIS支持 MP4 文件下載可以這么設(shè)置:(這里我們對IIS全局進(jìn)行設(shè)置、如果只針對某一個(gè)站點(diǎn)可以直接設(shè)置站點(diǎn)的)

1、在 網(wǎng)站 上右鍵 選屬性

2、在打開的 網(wǎng)站 屬性 上選擇 HTTP 頭 再點(diǎn) MIME類型按鈕

3、在打開的窗本中 點(diǎn)下 新建

4、在彈出的 MIME類型框上 擴(kuò)展名 MP4 MIME類型為: application/octet-stream

 

這樣IIS就可以支持 MP4下載了。

下面列出一些常用的 擴(kuò)展名的 MIME類型。

如果不知道MIME類型 可以寫通用的: application/octet-stream

還有一些規(guī)律如果是文本類的讓IE可以直接打開的 MIME 可以為 text/擴(kuò)展名

如果是音頻打開的時(shí)候讓windows自動播放的可以用 audio/擴(kuò)展名


擴(kuò)展名類型/子類型

PSE: collapse; FONT-FAMILY: Arial, Helvetica, sans-serif; COLOR: #000000; FONT-SIZE: 12px; BORDER-TOP: #888888 1px solid; BORDER-RIGHT: #888888 1px solid" class="dataintable" border="0">


 application/octet-stream
323text/h323
acxapplication/internet-property-stream
aiapplication/postscript
aifaudio/x-aiff
aifcaudio/x-aiff
aiffaudio/x-aiff
asfvideo/x-ms-asf
asrvideo/x-ms-asf
asxvideo/x-ms-asf
auaudio/basic
avivideo/x-msvideo
axsapplication/olescript
bastext/plain
bcpioapplication/x-bcpio
binapplication/octet-stream
bmpimage/bmp
ctext/plain
catapplication/vnd.ms-pkiseccat
cdfapplication/x-cdf
cerapplication/x-x509-ca-cert
classapplication/octet-stream
clpapplication/x-msclip
cmximage/x-cmx
codimage/cis-cod
cpioapplication/x-cpio
crdapplication/x-mscardfile
crlapplication/pkix-crl
crtapplication/x-x509-ca-cert
cshapplication/x-csh
csstext/css
dcrapplication/x-director
derapplication/x-x509-ca-cert
dirapplication/x-director
dllapplication/x-msdownload
dmsapplication/octet-stream
docapplication/msword
dotapplication/msword
dviapplication/x-dvi
dxrapplication/x-director
epsapplication/postscript
etxtext/x-setext
evyapplication/envoy
exeapplication/octet-stream
fifapplication/fractals
flrx-world/x-vrml
gifimage/gif
gtarapplication/x-gtar
gzapplication/x-gzip
htext/plain
hdfapplication/x-hdf
hlpapplication/winhlp
hqxapplication/mac-binhex40
htaapplication/hta
htctext/x-component
htmtext/html
htmltext/html
htttext/webviewhtml
icoimage/x-icon
iefimage/ief
iiiapplication/x-iphone
insapplication/x-internet-signup
ispapplication/x-internet-signup
jfifimage/pipeg
jpeimage/jpeg
jpegimage/jpeg
jpgimage/jpeg
jsapplication/x-javascript
latexapplication/x-latex
lhaapplication/octet-stream
lsfvideo/x-la-asf
lsxvideo/x-la-asf
lzhapplication/octet-stream
m13application/x-msmediaview
m14application/x-msmediaview
m3uaudio/x-mpegurl
manapplication/x-troff-man
mdbapplication/x-msaccess
meapplication/x-troff-me
mhtmessage/rfc822
mhtmlmessage/rfc822
midaudio/mid
mnyapplication/x-msmoney
movvideo/Quicktime
movievideo/x-sgi-movie
mp2video/mpeg
mp3audio/mpeg
mpavideo/mpeg
mpevideo/mpeg
mpegvideo/mpeg
mpgvideo/mpeg
mppapplication/vnd.ms-project
mpv2video/mpeg
msapplication/x-troff-ms
mvbapplication/x-msmediaview
nwsmessage/rfc822
odaapplication/oda
p10application/pkcs10
p12application/x-pkcs12
p7bapplication/x-pkcs7-certificates
p7capplication/x-pkcs7-mime
p7mapplication/x-pkcs7-mime
p7rapplication/x-pkcs7-certreqresp
p7sapplication/x-pkcs7-signature
pbmimage/x-portable-bitmap
pdfapplication/pdf
pfxapplication/x-pkcs12
pgmimage/x-portable-graymap
pkoapplication/ynd.ms-pkipko
pmaapplication/x-perfmon
pmcapplication/x-perfmon
pmlapplication/x-perfmon
pmrapplication/x-perfmon
pmwapplication/x-perfmon
pnmimage/x-portable-anymap
pot,application/vnd.ms-powerpoint
ppmimage/x-portable-pixmap
ppsapplication/vnd.ms-powerpoint
pptapplication/vnd.ms-powerpoint
prfapplication/pics-rules
psapplication/postscript
pubapplication/x-mspublisher
qtvideo/quicktime
raaudio/x-pn-realaudio
ramaudio/x-pn-realaudio
rasimage/x-cmu-raster
rgbimage/x-rgb
rmiaudio/mid
roffapplication/x-troff
rtfapplication/rtf
rtxtext/richtext
scdapplication/x-msschedule
scttext/scriptlet
setpayapplication/set-payment-initiation
setregapplication/set-registration-initiation
shapplication/x-sh
sharapplication/x-shar
sitapplication/x-stuffit
sndaudio/basic
spcapplication/x-pkcs7-certificates
splapplication/futuresplash
srcapplication/x-wais-source
sstapplication/vnd.ms-pkicertstore
stlapplication/vnd.ms-pkistl
stmtext/html
svgimage/svg+xml
sv4cpioapplication/x-sv4cpio
sv4crcapplication/x-sv4crc
swfapplication/x-shockwave-flash
tapplication/x-troff
tarapplication/x-tar
tclapplication/x-tcl
texapplication/x-tex
texiapplication/x-texinfo
texinfoapplication/x-texinfo
tgzapplication/x-compressed
tifimage/tiff
tiffimage/tiff
trapplication/x-troff
trmapplication/x-msterminal
tsvtext/tab-separated-values
txttext/plain

再添幾個(gè)常用的

apk    application/vnd.android.package-archive

MRP文件(國內(nèi)普遍的手機(jī))

.mrp application/octet-stream

IPA文件(IPHONE)

.ipa application/iphone-package-archive

.deb application/x-debian-package-archive

APK文件(安卓系統(tǒng))

.apk application/vnd.android.package-archive

CAB文件(Windows Mobile)

.cab application/vnd.cab-com-archive

XAP文件(Windows Phone 7)

.xap application/x-silverlight-app

SIS文件(symbian平臺/S60V1)

.sis application/vnd.symbian.install-archive *(下有)

SISX文件(symbian平臺/S60V3/V5)

.sisx application/vnd.symbian.epoc/x-sisx-app

    相關(guān)評論

    閱讀本文后您有什么感想? 已有人給出評價(jià)!

    • 8 喜歡喜歡
    • 3 頂
    • 1 難過難過
    • 5 囧
    • 3 圍觀圍觀
    • 2 無聊無聊

    熱門評論

    最新評論

    發(fā)表評論 查看所有評論(0)

    昵稱:
    表情: 高興 可 汗 我不要 害羞 好 下下下 送花 屎 親親
    字?jǐn)?shù): 0/500 (您的評論需要經(jīng)過審核才能顯示)