Question

I use the directory listing function in IIS to upload a bunch of files for friends and family to easy access and download.

My problem is that .mkv files it lists but when you click it i get a 'The page cannot be found'.

Ive tried relocating the file and renaming it but i get the same error each time. Why does it do this? Its only my .mkv files everything else works perfectly.

Thanks in advance.

Was it helpful?

Solution

have you added the mkv mime type for your IIS server?

Adding Mime Type Walk through

use mkv and "video/x-matroska" where the example uses FLV and the flv mime type.

OTHER TIPS

IIS doesn't like to serve files with extensions it doesn't know the MIME type for. This keeps someone from, say, getting web.config files (and thus, often, SQL server login info and such) from some site that wasn't extra careful about setting up permissions.

Provided answers will allow IIS to serve .mkv files. However, an alternative mime type can be used - video/webm. This will allow some browsers to play the content, rather than downloading it.

More details can be found here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top