Why the error 404 happens when I access *.mp4 file by HTTP?

前端 未结 4 1703
误落风尘
误落风尘 2020-12-16 11:39

I have some shared folder over HTTP. Lets say: http://myserver/files

And there are some filed like png, avi, jpg, mp4 and etc.

I can easily access *.png or *

4条回答
  •  别那么骄傲
    2020-12-16 12:17

    Add a MIME type with extension mp4 in IIS

    But please note that you should set the MIME type video/mp4 instead of video/mpeg orelse in IE "Save Target As.." shows different format, and it also affects the default video player open by browser.

    video/mpeg

    File name: test.mpeg

    Save as type: Movie Clip

    video/mp4

    File name: test.mp4

    Save as type: MP4 Video

提交回复
热议问题