MIME类型Web服务的文件扩展名? [英] File Extension to MIME Type Web Service?
本文介绍了MIME类型Web服务的文件扩展名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否有任何Web服务可以让我提供文件扩展名,并且它会返回可能的MIME类型的列表?
Are there any web services which will allow me to provide a file extension and it would return a list of possible MIME types?
例如:
http://mimetype.com/getMime/doc
哪个可以返回:
application/msword,application/docappl/text,application/vnd.msword,application/vnd.ms-word,application/winword,application/word,application/x-msw6,application/x-msword
I don't want to use Urlmon.dll and I would prefer not having to keep my own list up-to-date.
谢谢
推荐答案
我唯一能想到的就是解析apache服务器随附的列表 mime.types .该列表由Apache软件基金会维护,并且取决于 www.iana.org
The only thing I could imagine would be parsing the list which comes with the apache server mime.types. The list is maintained by The Apache Software Foundation and depends on www.iana.org
这篇关于MIME类型Web服务的文件扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文