Set the mime properties of the download site (to make files downloadable)

Source: Internet
Author: User
Tags bmp image xslt gtar

Sometimes some download websites generally support downloading common archive files such as rar and zip to support more formats, but do not support downloading many files such as iso, in fact, you can set mime.

Download General Software

. Torrent
Application/octet-stream

. 7z
Application/octet-stream

. Iso
Application/octet-stream

Mobile phone related types:

. Apk
Application/vnd. android. package-archive

. Ded
Application/vnd. iphone

. Dmg
Application/octet-stream

. Ipa
Application/vnd. iphone

. App

Application/vnd. iphone

. Pxl
Application/vnd. iphone

Enabling iis to support flv playback

. Flv
Flv-application/octet-stream

IIS encounters a problem where files cannot be downloaded. In order to enable IIS to download files with the INI extension, we need to do so: (the English version name is in brackets)

Open "IIS Manager (InternetInformationServices (IIS) Manager )"

Select your site. Right-click. Select Properties )"

Click the "HTTP header (HTTPHeaders)" tab

Click MIMETypes )"

Click NEW )"

In the Extension box, enter the file Extension, which is ini

In the MIMETypes box, enter a description of the extension. The input here is application/octet-stream

Explanations:

The purpose of inputting application/octet-stream in MIMETypes is to make IIS treat the INI file as an EXE and a download prompt appears.

Otherwise, a 404 error is prompted or the content is displayed directly in the browser. Can not achieve our goal.

All types of mime

File type MIME type
Ai application/postscript
Aif audio/x-aiff
Aifc audio/x-aiff
Aiff audio/x-aiff
Asc text/plain
Atom application/atom + xml
Au audio/basic
Avi video/x-msvideo
Bcpio application/x-bcpio
Bin application/octet-stream
Bmp image/bmp
Cdf application/x-netcdf
Cgm image/cgm
Class application/octet-stream
Cpio application/x-cpio
Cpt application/mac-compactpro
Csh application/x-csh
Css text/css
Dcr application/x-director
Dif video/x-dv
Dir application/x-director
Djv image/vnd. djvu
Djvu image/vnd. djvu
Dll application/octet-stream
Dmg application/octet-stream
Dms application/octet-stream
Doc application/msword
Dtd application/xml-dtd
Dv video/x-dv
Dvi application/x-dvi
Dxr application/x-director
Eps application/postscript
Etx text/x-setext
Exe application/octet-stream
Ez application/andrew-inset
Gif image/gif
Gram application/srgs
Grxml application/srgs + xml
Gtar application/x-gtar
Hdf application/x-hdf
Hqx application/mac-binhex40
Htm text/html
Html text/html
Ice x-conference/x-cooltalk
Ico image/x-icon
Ics text/calendar
Ief image/ief
Ifb text/calendar
Iges model/iges
Ig model/iges
Jnlp application/x-java-jnlp-file
Jp2 image/jp2
Jpe image/jpeg
Jpeg image/jpeg
Jpg image/jpeg
Js application/x-javascript
Kar audio/midi
Latex application/x-latex
Lha application/octet-stream
Lzh application/octet-stream
M3u audio/x-mpegurl
M4a audio/mp4a-latm
M4b audio/mp4a-latm
M4p audio/mp4a-latm
M4u video/vnd. mpegurl
M4v video/x-m4v
Mac image/x-macpaint
Man application/x-troff-man
Mathml application/mathml + xml
Me application/x-troff-me
Mesh model/mesh
Mid audio/midi
Midi audio/midi
Mif application/vnd. mif
Mov video/quicktime
Movie video/x-sgi-movie
Mp2 audio/mpeg
Mp3 audio/mpeg
Mp4 video/mp4
Mpe video/mpeg
Mpeg video/mpeg
Mpg video/mpeg
Mpga audio/mpeg
Ms application/x-troff-ms
Msh model/mesh
Mxu video/vnd. mpegurl
Nc application/x-netcdf
Oda application/oda
Ogg application/ogg
Pbm image/x-portable-bitmap
Pct image/pict
Pdb chemical/x-pdb
Pdf application/pdf
Pgm image/x-portable-graymap
Pgn application/x-chess-pgn
Pic image/pict
Pict image/pict
Png image/png
Pnm image/x-portable-anymap
Pnt image/x-macpaint
Pntg image/x-macpaint
Ppm image/x-portable-pixmap
Ppt application/vnd. ms-powerpoint
Ps application/postscript
Qt video/quicktime
Qti image/x-quicktime
Qtif image/x-quicktime
Ra audio/x-pn-realaudio
Ram audio/x-pn-realaudio
Ras image/x-cmu-raster
Rdf application/rdf + xml
Rgb image/x-rgb
Rm application/vnd. rn-realmedia
Roff application/x-troff
Rtf text/rtf
Rtx text/richtext
Sgm text/sgml
Sgml text/sgml
Sh application/x-sh
Shar application/x-shar
Silo model/mesh
Sit application/x-stuffit
Skd application/x-koan
Skm application/x-koan
Skp application/x-koan
Skt application/x-koan
Smi application/smil
Smil application/smil
Snd audio/basic
So application/octet-stream
Spl application/x-futuresplash
Src application/x-wais-source
Sv4cpio application/x-sv4cpio
Sv4crc application/x-sv4crc
Svg image/svg + xml
Swf application/x-shockwave-flash
T application/x-troff
Tar application/x-tar
Tcl application/x-tcl
Tex application/x-tex
Texi application/x-texinfo
Texinfo application/x-texinfo
Tif image/tiff
Tiff image/tiff
Tr application/x-troff
Tsv text/tab-separated-values
Txt text/plain
Ustar application/x-ustar
Vcd application/x-cdlink
Fig model/FIG
Vxml application/voicexml + xml
Wav audio/x-wav
Wbmp image/vnd. wap. wbmp
Wbmxl application/vnd. wap. wbxml
Wml text/vnd. wap. wml
Wmlc application/vnd. wap. wmlc
Wmls text/vnd. wap. wmlscript
Wmlsc application/vnd. wap. wmlscriptc
Wrl model/FIG
Xbm image/x-xbitmap
Xht application/xhtml + xml
Xhtml application/xhtml + xml
Xls application/vnd. ms-excel
Xml application/xml
Xpm image/x-xpixmap
Xsl application/xml
Xslt application/xslt + xml
Xul application/vnd. mozilla. xul + xml
Xwd image/x-xwindowdump
Xyz chemical/x-xyz
Zip application/zip

Configure the mime attribute of the mobile download site in iis

Mobile phone download site configuration is very troublesome because it needs to add a large number of download formats (such as downloading the Feixin mobile client installation package)
In this way, mobile phone players can download various types of resources through your WAP site

Allows IIS servers to download sis, SISX, 3GP, ADP, AMR, JAD, JAR, MMF, MFM, PMD, UMD, and other files.

Configure the MIME type of IIS on Windows2003 Server
Open Internet Service Manager> website Properties> HTTP header (MIME ing)> New

Or enter "inetmgr" in the CMD-RUN"

Add the following content type (MIME) associated extension
Text/vnd. wap. wml
Image/vnd. wap. wbmp
Text/vnd. wap. wmls
Application/vnd. wap. wmlc
Application/vnd. wap. wmlscriptc wmlsc
Text/vnd. wap. wmlscript wsc
Text/vnd. wap. wmlscript

To download java: add
. Jad text/vnd. sun. J2. app-descriptor
. Jar application/java-archive

Most Nokia mobile phones support download of sisfiles: added to iis
. Sis application/vnd. symbian. install
. SISX application/vnd. symbian. install

If you want to support IPK file support for the Android Google operating system, you need to add
. Apk application/vnd. android

If you want to support Iphone mobile phones, you need to add the following format
. Ipa application/vnd. iphone
. Pxl application/vnd. iphone
. Ded application/vnd. iphone
. App application/vnd. iphone

To support Windows mobile Phones, such as HTC mobile phones, add the following format:
. Cab application/vnd. smartpohone

Download WAP Server
--------------------------------
. Mmf audio/mmf
. Mfm audio/mfm
. Pmd audio/pmd
. Adp audio/adp
. Amr audio/amr
. Pmaudio/pmd
. 3gp video/3gpp
. Cab application/vnd. smartpohone
. Gif image/gif
. Ipa application/vnd. iphone
. Pxl application/vnd. iphone
. Ded application/vnd. iphone
. App application/vnd. iphone
. Hme application/vnd. smartphone. thm
. Jad text/vnd. sun. J2. app-descriptor
. Jar application/java-archive
. Jpg image/jpeg
. Mid audio/midi
. Mp3 audio/x-mpeg
. Mp4 video/mp4
. Ogg application/ogg
. Pdb application/ebook
. Rm video/rm
. Rng application/vnd. nokia. ringing-tone
. Sdt application/vnd. sie. thm
. Sis application/vnd. symbian. install
. Apk application/vnd. android
. Thm application/vnd. eri. thm
. Tsk application/vnd. ppc. thm
. Umd application/umd
. Utz application/vnd. uiq. thm
. Wav audio/x-wav
. Wbmp image/vnd. wap. wbmp
. Wml text/vnd. wap. wml
. Wmlc application/vnd. wap. wmlc
. Wmls text/vnd. wap. wmlscript
. Wmlsc application/vnd. wap. wmlscriptc
. Wmv video/x-ms-wmv
. Wsc application/vnd. wap/wmlscriptc
--------------------------------------------------------------------
Common WAP servers
. Wbmp image/vnd. wap. wbmp
. Wml text/vnd. wap. wml
. Wmlc application/vnd. wap. wmlc
. Wmls text/vnd. wap. wmlscript
. Wmlsc application/vnd. wap. wmlscriptc
. Wmv video/x-ms-wmv
. Wsc application/vnd. wap/wmlscriptc
. Gif image/gif
. Jpg image/jpeg
. Bmp image/bmp

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.