IIS 目录列表无法识别 .mkv 文件

发布于 2024-09-03 04:42:29 字数 174 浏览 2 评论 0原文

我使用IIS中的目录列表功能上传一堆文件,以便朋友和家人轻松访问和下载。

我的问题是它列出了 .mkv 文件,但是当您单击它时,我收到“找不到页面”。

我尝试过重新定位文件并重命名它,但每次都会遇到相同的错误。为什么要这样做?它只是我的 .mkv 文件,其他一切都工作正常。

提前致谢。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

失眠症患者 2024-09-10 04:42:29

您是否为 IIS 服务器添加了 mkv mime 类型?

添加 Mime 类型演练

使用 mkv和“video/x-matroska”,其中示例使用 FLV 和 flv mime 类型。

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.

轻拂→两袖风尘 2024-09-10 04:42:29

IIS 不喜欢提供带有它不知道其 MIME 类型的扩展名的文件。例如,这可以防止某人从某些没有特别小心设置权限的站点获取 web.config 文件(因此通常还可以获取 SQL Server 登录信息等)。

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.

强者自强 2024-09-10 04:42:29

提供的答案将允许 IIS 提供 .mkv 文件。但是,可以使用另一种 mime 类型 - video/webm。这将允许某些浏览器播放内容,而不是下载内容。

更多详细信息可以在此处找到。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文