`
leo1211
  • 浏览: 137943 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

文件ContentType

阅读更多

".asf" ContentType ="video/x-ms-asf"
".avi" ContentType ="video/avi"
".doc" ContentType ="application/msword"
".xls" ContentType ="application/vnd.ms-excel"
".pdf" ContentType ="application/pdf"
".ppt" ContentType ="application/vnd.ms-powerpoint"
".gif" ContentType ="image/gif"
".jpg" ContentType ="image/jpeg"
".jpe" ContentType ="image/jpeg"
"jpeg" ContentType ="image/jpeg"
".bmp" ContentType ="image/bmp"
".txt" ContentType ="application/text"
".txt" ContentType ="application/zip"
".zip" ContentType ="application/zip"
".wav" ContentType ="audio/wav"
".mp3" ContentType ="audio/mpeg3"
".mpg","mpeg" ContentType ="video/mpeg"
".rtf" ContentType ="application/rtf"
".htm","html" ContentType ="text/html"
".asp" ContentType ="text/asp"
other:  ContentType ="application/octet-stream"

分享到:
评论

相关推荐

    Java获取文件ContentType案例

    主要介绍了Java获取文件ContentType案例,具有很好的参考价值,希望对大家有所帮助。一起跟随小编过来看看吧

    关于asp.net的ContentType输出格式

    关于asp.net的contenttype的说明,可以很好的去翻阅,值得一看。

    文件下载及web文件的contentType类型大全

    //设置下载文件大小 response.setContentType("application/octet-stream");//设置文件类型 OutputStream toClient=new BufferedOuntputStream( response.getOutputStream() );//获取二进制输出流 //读取文件数据...

    Web文件的ContentType类型大全

    Web文件的ContentType类型大全

    struts2 文件上传中 ContentType对应表

    struts2 文件上传中 ContentType对应表

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

    图片上传常用的类型判断方法有这么几种—截取扩展名、获取文件ContentType (MIME) 、读取byte来判断(这个什么叫法来着?)。前两种都有安全问题。容易被上传不安全的文件,如木马什么的。第1种截取文件扩展名来判断的...

    HTML中的ContentType

    Content-Type,连接类型,一般是指网页中存在的Content-Type,用于定义网络文件的类型和网页的编码,决定浏览器将以什么形式、什么编码读取这个文件。 例如将:ContentType设置为image/jpeg,那么浏览器打开页面将...

    http post上传文件与表格 ContentType = multipart/form-data

    http post方式上传文件与表格,ContentType = multipart/form-data

    所有contentType类型

    各个文件所指定的contentType类型

    ContentType列表

    ContentType列表 文件列表 ContentType列表 ContentType列表 ContentType列表

    contenttype

    struts2 支持的問題文件類型,如word,excel,等在代碼中的轉換。

    uploadFile控件上传文件,格式判断

    string type = file_uploadid.PostedFile.ContentType; string type2 = newfilename.Substring(newfilename.LastIndexOf(".") + 1); string path = ""; try { if (file_uploadid.PostedFile != null && file_...

    文件上传FileAjaxUpload.js 文件

    contentType : "application/x-www-form-urlencoded; charset=utf-8", fileElementId: [id], //文件上传域的ID 在这里设置要上传的多个input的ID dataType: 'json', //返回值类型 一般设置为json success:...

    ajax文件上传

    同时,ajax并不支持文件的上传,此时ajaxfileupload就应运而生了,本人,在此基础上经过改写,使其同时支持,多文件上传isMore(boolen)、序列化类型参数ContentType(Serial/json)’,并且给出了SpringMVC的文件...

    文件下载代码

    C# 实现文件下载,使用lovecherry 的如何从注册表读取文件的ContentType

    PHP 文件类型判断代码

    何为MIME类型,它是设定某种扩展名的文件用一种应用程序来打开的方式类型,当该扩展名文件被访问时,浏览器会自动使用指定应用程序来打开。 多用于指定一些客户端自定义的文件名,以及一些媒体文件打开方式。 参考...

    JSP加载JS文件不起作用的有效解决方法

    目录结构:jsp导入jquery文件,老是不起作用,原因在于: 代码如下: [removed][removed] 其不能访问/WEB-INF/目录下的文件,因此需要将加载的js文件其放倒webapp目录。 test.html: 代码如下: <%@ page ...

    jsp文件下载源代码

    <%@page contentType="text/html; charset=EUC-JP" language="java" %> *"%> *"%> *"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd";> ; if (request.getParameter...

    SA-FileUp 文件上传

    来自Software Artisans,SA...从服务器上删除文件,如果不指定文件名,则删除当前的文件。 如果指定的话,必须是文件的完整路径。 Flush方法 oFileUp.Flush 当你不想保存任何东西的时候,可以用它来放弃全部的输入流。

Global site tag (gtag.js) - Google Analytics