`
喜羊羊与灰太狼
  • 浏览: 42699 次
  • 性别: Icon_minigender_1
  • 来自: 成都
最近访客 更多访客>>
社区版块
存档分类
最新评论

预定义 MIME content types

    博客分类:
  • Java
 
阅读更多

Type

Subtype

Description

text

 

The document represents printable text.

 

calendar

Calendaring and scheduling information in the iCalendar format; see RFC 2445.

 

css

A Cascading Style Sheet used for HTML and XML.

 

directory

Address book information such as name, phone number, and email address; used by Netscape vCards; defined in RFCs 2425 and 2426.

 

enriched

A very simple HTML-like language for adding basic font and paragraph-level formatting such as bold and italic to email; used by Eudora; defined in RFC 1896.

 

html

Hypertext Markup Language as used by web browsers.

 

plain

This is supposed to imply raw ASCII text. However, some web servers use text/plain as the default MIME type for any file they can't recognize. Therefore, anything and everything, most notably .class byte code files, can get identified as a text/plain file.

 

richtext

An HTML-like markup for encoding formatting into pure ASCII text. It's never really caught on, in large part because of the popularity of HTML.

 

rtf

An incompletely defined Microsoft format for word processing files.

 

sgml

The Standard Generalized Markup Language; ISO standard 8879:1986.

 

tab-separated-values

The interchange format used by many spreadsheets and databases; records are separated by linebreaks and fields by tabs.

 

xml

The W3C standard Extensible Markup Language. For various technical reasons, application/xml should be used instead, but often isn't.

multipart

 

Multipart MIME messages encode several different files into one message.

 

mixed

Several message parts intended for sequential viewing.

 

alternative

The same message in multiple formats so a client may choose the most convenient one.

 

digest

A popular format for merging many email messages into a single digest; used by many mailing lists and some FAQ lists.

 

parallel

Several parts intended for simultaneous viewing.

 

byteranges

Several separately contiguous byte ranges; used in HTTP 1.1.

 

encrypted

One part for the body of the message and one part for the information necessary to decode the message.

 

signed

One part for the body of the message and one part for the digital signature.

 

related

Compound documents formed by aggregating several smaller parts.

 

form-data

Form responses.

message

 

An email message.

 

external-body

Just the headers of the email message; the message's body is not included but exists at some other location and is referenced, perhaps by a URL.

 

http

An HTTP 1.1 request from a web client to a web server.

 

news

A news article.

 

partial

Part of a longer email message that has been split into multiple parts to allow transmission through email gateways.

 

rfc822

A standard email message including headers.

image

 

Two-dimensional pictures.

 

cgm

A Computer Graphics Metafile format image. CGM is ISO standard 8632:1992 for device-independent vector graphics and bitmap images.

 

g3fax

The standard for bitmapped fax images.

 

gif

A Graphics Interchange Format image.

 

jpeg

The Joint Photographic Experts Group file format for bitmapped images with lossy compression.

 

png

A Portable Network Graphics Format image. The format was developed at the W3C as a modern replacement for GIF that supports 24-bit color and is not encumbered by patents.

 

tiff

The Tagged Image File format from Adobe.

audio

 

Sound.

 

basic

8-bit ISDN -law encoded audio with a single channel and a sample rate of eight kilohertz. This is the format used by .au and .snd files and supported by the java.applet.AudioClip class.

video

 

Video.

 

mpeg

The Motion Picture Experts Group format for video data with lossy compression.

 

quicktime

Apple's proprietary QuickTime movie format. Before being included in a MIME message, QuickTime files must be "flattened".

model

 

3-D images.

 

vrml

A Virtual Reality Modeling Language file, a format for 3-D data on the Web.

 

iges

The Initial Graphics Exchange Specification for interchanging documents between different CAD programs.

 

mesh

The mesh structures used in finite element and finite difference methods.

application

 

Binary data specific to some application.

 

octet-stream

Unspecified binary data, which is usually saved into a file for the user. This MIME type is sometimes used to serve .class byte code files.

 

java

A nonstandard subtype sometimes used to serve .class byte code files.

 

postscript

Adobe PostScript.

 

dca-rft

IBM's Document Content Architecture-Richly Formatted Text.

 

mac-BinHex40

A means of encoding the two forks of a Macintosh document in a single ASCII file.

 

pdf

An Adobe Acrobat file.

 

zip

A zip compressed file.

 

macwriteii

A MacWrite II word-processing document.

 

msword

A Microsoft Word document.

 

xml+xhtml

An XHTML document

 

xml

An Extensible Markup Language document.

分享到:
评论

相关推荐

    mime-types:最终的javascript content-type实用程序

    而不是天真地返回第一个可用类型, mime-types只返回false ,所以var type = mime.lookup('unrecognized') || 'application/octet-stream' var type = mime.lookup('unrecognized') || 'application/octet-stream' ...

    perl-MIME-Types-2.170.0

    MIME (Multipurpose Internet Mail Extensions) is an Internet standard for describes message content types. MIME ( 多用途的网际邮件扩充协议)是用于描述信息内容类型的国际标准。 MIME messages can contain...

    ruby-mime-types:Ruby MIME类型注册表库

    Ruby MIME类型注册表库,即`ruby-mime-types`,是一个专门为Ruby编程语言设计的库,用于处理和识别MIME(Multipurpose Internet Mail Extensions)类型。MIME类型是一种标准,用于定义不同类型的网络数据,包括文件...

    boa库,cgi库及mimi.types

    `mimetypes.types_map`是Python标准库中的一个字典,用于映射文件扩展名到其对应的MIME类型。在Web服务器中,MIME类型用来标识资源的类型,如文本、图像、音频或视频等。 boa在处理静态文件时,会根据文件的扩展名...

    Server-Setup-MIME-Types-Headers:服务器设置的收集以及如何在不同的环境中进行设置

    - **Nginx服务器**:在服务器配置块或站点配置文件中,使用`types`指令定义MIME类型。 - **Node.js/Express**:使用`express.static`中间件时,可以配置`set('view engine', 'extension')`或使用第三方库如`mime-...

    什么是 MIME TYPE MIME-Types类型集合

    在Windows中,这些信息存储在注册表中,可以通过查看`HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MIME\Database\Content Type`来管理。 总之,MIME类型是互联网通信中不可或缺的一部分,它确保了不同类型的文件能够被...

    .net设置Mime.zip

    `MimeContent`类用于封装具有特定MIME类型的二进制或文本内容。你可以通过设置其`ContentType`属性来指定MIME类型,例如`"text/plain"`表示纯文本,`"image/jpeg"`表示JPEG图像等。 `MediaTypeNames`类包含了一些...

    The Complete List of MIME Types(比较完整的MIME类型一览表)

    2. **注册表配置**:在Windows中,MIME类型信息存储在注册表中,如`HKEY_LOCAL_MACHINE\SOFTWARE\Classes\MIME\Database\Content Type`,用户可以在这里自定义文件类型关联。 3. **应用程序配置**:用户可以设置特定...

    mime工具类

    其他语言如Python有`mimetypes`模块,PHP有`finfo`函数。 3. **处理未知类型**:如果文件没有明确的MIME类型,工具类可能通过读取文件的二进制内容或元数据来尝试推断。 4. **安全考虑**:在上传下载过程中,检查...

    Content-Type

    "Content-Type" Content-Type 是 HTTP 协议中的一个 ...MIME 类型的定义可以在 RFC-2046 MIME Part 2: Media Types 中找到。Content-Type 是 HTTP 协议中的一个核心概念,它决定了服务器和浏览器之间的消息传输方式。

    node-detect-content-type:使用MIME嗅探标准确定给定数据的Content-Type

    使用指定的算法来确定给定数据的Content-Type的Javascript模块。 该模块在无法使用文件扩展名来确定数据的内容类型的情况下很有用,因为文件没有扩展名或文件名不可用。 安装 npm install detect-content-type ...

    AWSS3ContentTypes:Amazon S3服务支持的内容类型

    Amazon S3支持广泛的预定义内容类型,涵盖了从文本文件到音频、视频、图像和压缩文件等各种类型。 以下是一些常见的Amazon S3支持的内容类型示例: 1. 文本文件: - "text/plain":纯文本文件,如.txt - "text/...

    web app中如何下载播放特殊类型的文件1

    在开发Web应用程序,...对于其他特殊类型的文件,你可以参考微软官方文档([MSDN](https://msdn.microsoft.com/en-us/library/bb742440.aspx))和IIS博客文章([Adding MIME Types to Your Windows Azure Web Site]...

    DigitalAssetsUserGuide.pdf

    For more information, see the MIME Types section of the System Setup / Super User Guide. l Images are assets, usually with a MIME type of image/*, and can be converted during export from STEP. ...

    Java Network Programming 3rd Edition By Elliotte Rusty Harold 2004

    Guessing MIME Content Types Section 15.11. HttpURLConnection Section 15.12. Caches Section 15.13. JarURLConnection Chapter 16. Protocol Handlers Section 16.1. What Is a Protocol Handler? ...

    Node搭建静态资源服务器时后缀名与响应头映射关系的Json文件

    res.setHeader('Content-Type', mimeTypes[ext]['Content-Type']); } next(); }); app.listen(3000, () => { console.log('Server is running on port 3000'); }); ``` 在这个示例中,我们使用`express.static...

    Content-type的说明即HTTP请求头的类型整理

    要学习content-type,必须事先知道它到底是什么,是干什么用的。 HTTP协议(RFC2616)采用了请求/响应模型。客户端向服务器发送一个请求,请求头包含请求的方法、URI、协议版本、以及包含请求修饰符、客户 信息和...

    4_类型_

    例如,在Python中,我们可以使用`mimetypes`库,或者第三方库如`filetype`来获取MimeType。 5. 文件信息工具:操作系统通常提供文件信息工具,如Windows的“属性”面板或Mac的“Get Info”,可以直接查看文件的Mime...

    php关于上传图片的验证

    PHP中的`finfo_file`函数或`mime_content_type`函数可以实现这个功能。这些函数会检测文件的MIME类型,确保它是图片类型。以下是一个例子: ```php $file_info = finfo_open(FILEINFO_MIME_TYPE); $file_mime = ...

    mimedoc:哑剧医生

    米多克通过进行基于扩展名和内容的 mimetype 识别,确保文件名真正... 您将通过--help获得此帮助屏幕: NAME: mimedoc - Cross reference extension-based and content-based mimetypes.USAGE: mimedoc [global opti

Global site tag (gtag.js) - Google Analytics