在网站的根目录下添加web.config文件,文件内容如下:
<configuration>
<system.webServer>
<staticContent>
<mimeMap fileExtension=”.mp4″ mimeType=”video/mp4″ />
</staticContent>
</system.webServer>
</configuration>
转:https://blog.csdn.net/sndongcheng/article/details/78296338