html 的 ContentType 小结

ContentTypes : "ez","application/andrew-inset"
ContentTypes : "hqx","application/mac-binhex40"
ContentTypes : "cpt","application/mac-compactpro"
ContentTypes : "doc","application/msword"
ContentTypes : "bin","application/octet-stream"
ContentTypes : "dms","application/octet-stream"
ContentTypes : "lha","application/octet-stream"
ContentTypes : "lzh","application/octet-stream"
ContentTypes : "exe","application/octet-stream"
ContentTypes : "class","application/octet-stream"
ContentTypes : "so","application/octet-stream"
ContentTypes : "dll","application/octet-stream"
ContentTypes : "oda","application/oda"
ContentTypes : "pdf","application/pdf"
ContentTypes : "ai","application/postscript"
ContentTypes : "eps","application/postscript"
ContentTypes : "ps","application/postscript"
ContentTypes : "smi","application/smil"
ContentTypes : "smil","application/smil"
ContentTypes : "mif","application/vnd.mif"
ContentTypes : "xls","application/vnd.ms-excel"
ContentTypes : "ppt","application/vnd.ms-powerpoint"
ContentTypes : "wbxml","application/vnd.wap.wbxml"
ContentTypes : "wmlc","application/vnd.wap.wmlc"
ContentTypes : "wmlsc","application/vnd.wap.wmlscriptc"
ContentTypes : "bcpio","application/x-bcpio"
ContentTypes : "vcd","application/x-cdlink"
ContentTypes : "pgn","application/x-chess-pgn"
ContentTypes : "cpio","application/x-cpio"
ContentTypes : "csh","application/x-csh"
ContentTypes : "dcr","application/x-director"
ContentTypes : "dir","application/x-director"
ContentTypes : "dxr","application/x-director"
ContentTypes : "dvi","application/x-dvi"
ContentTypes : "spl","application/x-futuresplash"
ContentTypes : "gtar","application/x-gtar"
ContentTypes : "hdf","application/x-hdf"
ContentTypes : "js","application/x-javascript"
ContentTypes : "skp","application/x-koan"
ContentTypes : "skd","application/x-koan"
ContentTypes : "skt","application/x-koan"
ContentTypes : "skm","application/x-koan"
ContentTypes : "latex","application/x-latex"
ContentTypes : "nc","application/x-netcdf"
ContentTypes : "cdf","application/x-netcdf"
ContentTypes : "sh","application/x-sh"
ContentTypes : "shar","application/x-shar"
ContentTypes : "swf","application/x-shockwave-flash"
ContentTypes : "sit","application/x-stuffit"
ContentTypes : "sv4cpio","application/x-sv4cpio"
ContentTypes : "sv4crc","application/x-sv4crc"
ContentTypes : "tar","application/x-tar"
ContentTypes : "tcl","application/x-tcl"
ContentTypes : "tex","application/x-tex"
ContentTypes : "texinfo","application/x-texinfo"
ContentTypes : "texi","application/x-texinfo"
ContentTypes : "t","application/x-troff"
ContentTypes : "tr","application/x-troff"
ContentTypes : "roff","application/x-troff"
ContentTypes : "man","application/x-troff-man"
ContentTypes : "me","application/x-troff-me"
ContentTypes : "ms","application/x-troff-ms"
ContentTypes : "ustar","application/x-ustar"
ContentTypes : "src","application/x-wais-source"
ContentTypes : "xhtml","application/xhtml+xml"
ContentTypes : "xht","application/xhtml+xml"
ContentTypes : "zip","application/zip"
ContentTypes : "au","audio/basic"
ContentTypes : "snd","audio/basic"
ContentTypes : "mid","audio/midi"
ContentTypes : "midi","audio/midi"
ContentTypes : "kar","audio/midi"
ContentTypes : "mpga","audio/mpeg"
ContentTypes : "mp2","audio/mpeg"
ContentTypes : "mp3","audio/mpeg"
ContentTypes : "aif","audio/x-aiff"
ContentTypes : "aiff","audio/x-aiff"
ContentTypes : "aifc","audio/x-aiff"
ContentTypes : "m3u","audio/x-mpegurl"
ContentTypes : "ram","audio/x-pn-realaudio"
ContentTypes : "rm","audio/x-pn-realaudio"
ContentTypes : "rpm","audio/x-pn-realaudio-plugin"
ContentTypes : "ra","audio/x-realaudio"
ContentTypes : "wav","audio/x-wav"
ContentTypes : "pdb","chemical/x-pdb"
ContentTypes : "xyz","chemical/x-xyz"
ContentTypes : "bmp","image/bmp"
ContentTypes : "gif","image/gif"
ContentTypes : "ief","image/ief"
ContentTypes : "jpeg","image/jpeg"
ContentTypes : "jpg","image/jpeg"
ContentTypes : "jpe","image/jpeg"
ContentTypes : "png","image/png"
ContentTypes : "tiff","image/tiff"
ContentTypes : "tif","image/tiff"
ContentTypes : "djvu","image/vnd.djvu"
ContentTypes : "djv","image/vnd.djvu"
ContentTypes : "wbmp","image/vnd.wap.wbmp"
ContentTypes : "ras","image/x-cmu-raster"
ContentTypes : "pnm","image/x-portable-anymap"
ContentTypes : "pbm","image/x-portable-bitmap"
ContentTypes : "pgm","image/x-portable-graymap"
ContentTypes : "ppm","image/x-portable-pixmap"
ContentTypes : "rgb","image/x-rgb"
ContentTypes : "xbm","image/x-xbitmap"
ContentTypes : "xpm","image/x-xpixmap"
ContentTypes : "xwd","image/x-xwindowdump"
ContentTypes : "igs","model/iges"
ContentTypes : "iges","model/iges"
ContentTypes : "msh","model/mesh"
ContentTypes : "mesh","model/mesh"
ContentTypes : "silo","model/mesh"
ContentTypes : "wrl","model/vrml"
ContentTypes : "vrml","model/vrml"
ContentTypes : "css","text/css"
ContentTypes : "html","text/html"
ContentTypes : "htm","text/html"
ContentTypes : "asc","text/plain"
ContentTypes : "txt","text/plain"
ContentTypes : "rtx","text/richtext"
ContentTypes : "rtf","text/rtf"
ContentTypes : "sgml","text/sgml"
ContentTypes : "sgm","text/sgml"
ContentTypes : "tsv","text/tab-separated-values"
ContentTypes : "wml","text/vnd.wap.wml"
ContentTypes : "wmls","text/vnd.wap.wmlscript"
ContentTypes : "etx","text/x-setext"
ContentTypes : "xsl","text/xml"
ContentTypes : "xml","text/xml"
ContentTypes : "mpeg","video/mpeg"
ContentTypes : "mpg","video/mpeg"
ContentTypes : "mpe","video/mpeg"
ContentTypes : "qt","video/quicktime"
ContentTypes : "mov","video/quicktime"
ContentTypes : "mxu","video/vnd.mpegurl"
ContentTypes : "avi","video/x-msvideo"
ContentTypes : "movie","video/x-sgi-movie"
ContentTypes : "ice","x-conference/x-cooltalk"
ContentTypes : "form","application/x-www-form-urlencoded"

(0)

相关推荐

  • response.setContentType()的作用及MIME参数详解

    response.setContentType(MIME)的作用是使客户端浏览器,区分不同种类的数据,并根据不同的MIME调用浏览器内不同的程序嵌入模块来处理相应的数据. 例如web浏览器就是通过MIME类型来判断文件是GIF图片.通过MIME类型来处理json字符串. Tomcat的安装目录\conf\web.xml 中就定义了大量MIME类型 ,可以参考. response.setContentType("text/html; charset=utf-8"); html .setC

  • IIS自定义MIME类型的步骤

    单击[开始]→[程序]→[管理工具]→[IIS管理器],逐步展开"本地计算机"."网站",在你的网站上右击,选择[属性],单击"HTTP头"选项卡→单击"MIME类型"按钮,再单击"新建"按钮,在"扩展名"框内输入".flv","MIME类型"框中输入"flv-application/octet-stream",然后确定即可.&

  • jquery乱码与contentType属性设置问题解决方案

    今天闲的无聊,把以前遗留的问题解决一下,比如让人头痛的Jquery乱码问题.其实这方面文章已经很多了,但全面解决各种问题的很少,今天总结一下,方便自己也方便大家. 原因很简单: 其实他的中文乱码就是因为contentType没有指定编码,对于不同Jquery的版本中这个地方有不同的设置,就拿我遇到的,jquery-1.6.1和jquery-1.8.3就有不同的定义. 解决办法:在jquery-1.6.1文件中,搜索'contentType' 然后在application/x-www-form-u

  • asp.net下Response.ContentType类型汇总

    在ASP.NET中使用Response.ContentType="类型名";来确定输出格式 'ez' => 'application/andrew-inset',  'hqx' => 'application/mac-binhex40',  'cpt' => 'application/mac-compactpro',  'doc' => 'application/msword',  'bin' => 'application/octet-stream', 

  • asp.net 下载文件时根据MIME类型自动判断保存文件的扩展名

    引言 用WebClient下载远程资源时,经常会遇到类似这样的网址: http://www.uushare.com/filedownload?user=icesee&id=2205188 http://www.guaishow.com/u/luanfujie/g9675/ 我们不知道这个Url具体代表的是一个网页,还是某种类型的文件. 而有些Url虽然带有扩展名,但可能是错误的扩展名,常见的比如把gif文件标上了jpg扩展名. 如果我们没法正确判断下载源的文件类型的话,就无法保存为正确的文件格式

  • 基于C# winform实现图片上传功能的方法

    本文所述实例实现将一张图片上传到指定的文件夹,然后在窗体上的PictrueBox控件中显示出来. 具体功能代码如下: private void btnUpload_Click(object sender, EventArgs e) { //创建一个对话框对象 OpenFileDialog ofd = new OpenFileDialog(); //为对话框设置标题 ofd.Title = "请选择上传的图片"; //设置筛选的图片格式 ofd.Filter = "图片格式|*

  • yii实现图片上传及缩略图生成的方法

    本文实例讲述了利用yii框架来实现图片上传功能并在上传成功之后自动生成缩略图的方法,分享给大家供大家参考.具体实现方法如下: Action文件: 复制代码 代码如下: <?php /**  * TestController.php  * Created on: 2014-1-26 12:59:36 by Outsider  */ class TestController extends CController {       /**      * 缩略图片生成      * @ path 图片路

  • jquery+php+ajax显示上传进度的多图片上传并生成缩略图代码

    本例用到其他2个php class.upload.php和 functions.php还有css和js以及img文件 完整实例代码点击此处本站下载. 效果图如下: 实现代码如下: JavaScript代码如下: 复制代码 代码如下: <script type="text/javascript">  $(document).ready(function() {      $("#filelist").niceScroll({          cursor

  • 用asp实现网页调用doc附Response.ContentType 详细列表

    微软有篇文章:http://support.microsoft.com/kb/193998/zh-cn,用doc读取和显示二进制数据,<怎样读取二进制文件>,没测试,懒得编译dll    asp程序:    <%            response.buffer=true            response.contenttype="application/x-msexcel"            dim   vntstream            set

  • WIN2003中使用IIS配置手机下载类WAP网站的MIME类型介绍

    下面我就针对win2003为大家介绍一下WAP站点的安装 让IIS服务器 可以支持sis.SISX.3GP.ADP.AMR.JAD.JAR.MMF.MFM.PMD.UMD等文件下载 Windows2003 服务器配置IIS的MIME类型 打开Internet 服务管理器Internet 服务管理器-->网站属性-->HTTP头(MIME映射)-->新建 添加下列内容类型(MIME) 关联扩展名 text/vnd.wap.wml wml image/vnd.wap.wbmp wbmp te

  • 自己动手打造ajax图片上传(网上没有的)

    今天笔者需要一款图片上传插件,但是网上没有提供一款符合自己需求且好用的.于是就自己动手写了一个. 方法1,仅使用jquery代码,不用第三方插件.代码如下 <p> <label>上传图片</label> <input class="ke-input-text" type="text" id="url" value="" readonly="readonly" /&g

  • jQuery插件jcrop+Fileapi完美实现图片上传+裁剪+预览的代码分享

    网页端 裁剪图片,不需要经过服务器. 这个是用 https://github.com/mailru/FileAPI 框架实现的.配合jcrop. 高级浏览器 使用 canvas 裁剪,ie6 7 8使用 flash过度. 核心代码: var el = $('input').get(0); seajs.use(['gallery/jcrop/0.9.12/jcrop.css','gallery/jcrop/0.9.12/jcrop.js'] ,function(){ FileAPI.event.o

  • php多个文件及图片上传实例详解

    本文实例讲述了php多个文件及图片上传的方法.分享给大家供大家参考.具体实现方法如下: 多个文件上传是在单文件上传的基础上利用遍历数组的方式进行遍历表单数组然后把文件一个个上传到服务器上了,下面就来看一个简单多个文件上传实例 多个文件上传和单独文件上传的处理方式是一样的,只需要在客户端多提供几个类型为"file"的输入表单,并指定不同的"name"属性值.例如,在下面的代码中,可以让用户同时选择三个本地文件一起上传给服务器,客户端的表单如下所示: 复制代码 代码如下

  • 下载站mime属性设置(让文件可下载)

    一般软件下载 .torrentapplication/octet-stream .7zapplication/octet-stream .isoapplication/octet-stream 手机相关类型: .apkapplication/vnd.android.package-archive .dedapplication/vnd.iphone .dmg application/octet-stream .ipaapplication/vnd.iphone .app application/

  • Mime类型与文件后缀对照表

    方便iis中或其他服务器对相应的文件进行解析 有一些格式上传后无法下载或访问,需要设置MIME, 在主机管理>管理>设置MIME,里添加,比如.flv就需要设置后才能访问 文件后缀 MIME 备注 *.avi video/x-msvideo 视频文件 *.aif *.aiff *.aifc audio/x-aiff 声音文件 *.au *.snd audio/basic 声音文件 *.ai *.eps *.ps application/postscript   *.asd *.asn appl

  • http图片上传安全性问题 根据ContentType (MIME) 判断其实不准确、不安全

    图片上传常用的类型判断方法有这么几种---截取扩展名.获取文件ContentType (MIME) .读取byte来判断(这个什么叫法来着?).前两种都有安全问题.容易被上传不安全的文件,如木马什么的.第1种截取文件扩展名来判断的方法很明显不安 全,第2种ContentType MIME可以伪造,所以用ContentType来判断其实也不安全.建议采用第3种. C#演示: 1.截取扩展名来做判断,不可取. if (Request.Files.Count > 0) { //这里只测试上传第一张图片

  • 让手机访问WAP网站服务器 IIS WAP服务器的MIME类型设置

    如果你的电脑,WEB服务器是IIS IIS--默认网站属性-->http 头-->MIME映射 -->文件类型 -->新类型 .wml text/vnd.wap.wml .wmlc application/vnd.wap.wmlc .wmls text/vnd.wap.wmlscript .wmlsc application/vnd.wap.wmlscriptc .wbmp image/vnd.wap.wbmp 如果你的电脑,WEB服务器是Apache Apache安装目录下的co

随机推荐