16

I hosted some mp4 videos on IIS. Although IIS 7.0 lists the video files, it doesn't allow download of them and a 404 Not Found is returned.

Xaqron
  • 29,931
  • 42
  • 140
  • 205

1 Answers1

31

Check the MIME Types, you will probably have to add it (MP4) to "allow download".

Glenn Ferrie
  • 10,290
  • 3
  • 42
  • 73
  • +1 - I had to do exactly this last week. Need to add the mime type for media/video IIRC. – x0n May 31 '11 at 01:25
  • 10
    Yes, adding `mp4` as `video/mp4` fixed it. – Xaqron May 31 '11 at 01:25
  • 11
    For Clear understanding of others...Let me put it step by step Choose the **website** to configure in IIS -> right click Choose **Properties** -> choose **HTTP Headers Tab** -> choose **File Types** under the **MIME Map** section -> choose **New Type** type **.mp4** as the extension and **video/mp4** as the mime type and choose **OK**. if still no change then restart iis.I have done like this in iis 6.0 it works for me. – Durai Amuthan.H Aug 26 '13 at 16:02
  • 1
    Or check here to see how you can do this through web.config: https://blogs.iis.net/bills/how-to-add-mime-types-with-iis7-web-config – Mike Cole Jan 16 '17 at 17:32