Add MIME mappings for IIS Publishing

Source: Internet
Author: User
Tags rar zip


The test release encountered a small problem, involving the previous no contact issues, recorded.

Background: Features require that video be called from the server, enabling the ability to browse videos in a Web page.


Problem: Your own video is ". mkv" format, after the call from the background, it is not normal to play, error prompts as follows:



After checking to find that the HTML multimedia tag you used was not an error, later, according to the page hints, you can configure the MIME type of IIS to enable the browser to play ". mkv" format video. The process is simple:







So set the original browser (Firefox, Google) can not play the problem is resolved.


Summary: Later after a number of tests found not to be effective, some format of video or audio can not be configured by the MIME type to solve, because of the browser's own conditions based on the configuration factors, non-human can be changed. Different browsers have different support standards for different multimedia:


MIME type Popular:

MIME is intended to be a multi-mesh Internet Mail extension designed to append multimedia data when sending e-mail, allowing mail clients to process according to their type. However, when it is supported by the HTTP protocol, its meaning is even more pronounced.  It makes the HTTP transfer not only the ordinary text, but also become colorful. Each MIME type consists of two parts, preceded by a large category of data, such as audio audio, image image, and so on, followed by a specific category.

Personal understanding: The browser according to MIME type to interpret the accepted file, what kind of file needs what kind of mime type, otherwise the browser is not recognized, the current understanding is this.



File Type Content-type Type
Common types Text Text/plain
Binary stream Application/octet-stream
RAR Compression Package Application/x-rar-compressed
ZIP Archive Package Application/zip
Flash file Application/x-shockwave-flash
QuickTime Video Video/quicktime
MP4 Video Video/mp4
MP3 Audio Audio/mpeg
JPEG Pictures Image/jpeg
GIF Pictures Image/gif
PNG Pictures Image/png



The different mime in different browsers have different changes in the current



IE6 IE7 IE8 Firefox Chrome Safari Opera
Text/plain Show file contents Show file contents Show file contents Show file contents Show file contents
Application/octet-stream Show file contents Download file Download file Download file Show file contents
Application/x-rar-compressed Download File 1 Download file Download file Download file Download file
Application/zip Download File 1 Download file Download file Download file Download file
Application/x-shockwave-flash Trying to show Flash Trying to show Flash Trying to show Flash Trying to show Flash Trying to show Flash
Video/quicktime Download file Download file Download file Download file Download file
Video/mp4 Download file Download file Trying to play a video 3 Download file Download file
Audio/mpeg Download file Download file Trying to play a video 3 Download file Download file
Image/jpeg Show file contents Trying to display a picture 2 Try to display a picture Try to display a picture Try to display a picture
Image/gif Show file contents Trying to display a picture 2 Try to display a picture Try to display a picture Try to display a picture
Image/png Show file contents Trying to display a picture 2 Try to display a picture Try to display a picture Try to display a picture
Application Download File 1 Show file contents Show file contents Download file Show file contents
Audio Download File 1 Show file contents Show file contents Download file Show file contents
Video Download File 1 Show file contents Show file contents Download file Show file contents
Image Download File 1 Show file contents Show file contents Download file Show file contents
HelloWorld Download File 1 Show file contents Show file contents Download file Show file contents

"Note 1": These types of content-type display "Unrecognized type"in the IE6 IE7 IE8 browser pop-up download dialog box in the test environment.

"Note 2": Firefox will display the URL and some error message output in the picture format.

"Note 3": Chrome tries to display videos in both formats directly using the video tag.



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.