mime-type的完整列表< - >文件扩展名映射 [英] complete list of mime-type <-> file extension mapping

查看:292
本文介绍了mime-type的完整列表< - >文件扩展名映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在互联网上找到完整的mime类型映射列表。
我想有一个列表,它将文件扩展名引用到每个现有的mime类型。

I can't find a complete list of mime-type mappings on the internet. I would like to have a list that refers a file extension to every existing mime type.

所有mime类型的列表都可以在这里找到:< br>
http://www.iana.org/assignments/media-types

The list of all mime-types can be found here:
http://www.iana.org/assignments/media-types

但该资源不包含文件扩展名映射。

but that resource doesn't include the file extension mapping.

我google了一个而且找不到包含所有mime-types的映射列表。只有最常见的列表。在我发现的所有列表中,例如缺少此条目:

I googled a while and couldn't find a mapping list with all mime-types. Only lists with most common ones. In all lists I found for example this entry is missing:

application/vnd.openxmlformats-officedocument.wordprocessingml.document   ->  .docx

有人知道资源在哪里可以找到完整的映射吗?

Does someone know a resource where to find a complete mapping?

推荐答案

我只是想让你知道,在框架4.5中有一个新的类

I just want to let you know, there is a new class for this in framework 4.5

System.Web.MimeMapping.GetMimeMapping(filename);

来源: https://msdn.microsoft.com/en-us/library/system.web.mimemapping(v = vs。 110).aspx

这篇关于mime-type的完整列表&lt; - &gt;文件扩展名映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆