Home > Featured > Video file or any other static content file not downloading and playing correctly on an IIS web server? Its a MIME file-type issue
Bookmark and Share

Video file or any other static content file not downloading and playing correctly on an IIS web server? Its a MIME file-type issue

Posted on June 25, 2013 | Filed in Featured

Videos not downloading on an IIS server? The probably cause is that the server has not been told how to handle a particular file type.

Save the following code (below) as a web.config file. Upload this file to the folder storing the videos that are not being served up correctly. In the case below .mp4 videos were not being served by the server. So a .mp4 extension is being added as a valid video file extension.

<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=”.mp4″ mimeType=”video/mpeg” />
</staticContent>
</system.webServer>
</configuration>

Leave a Reply

Contact Us

Big Apple Design Group
134 West 29th Street
Third Floor
New York, NY 10001

[email protected]

Search Blog