-->
Mime Types List
Definition
説明 拡張子 MIME Content-Type; HTML(Hyper Text Markup Language) html, htm: text/html: LaTeX: tex, latex, ltx: application/x-latex: PDF(Portable Document Format). The Content-Type header field is used to specify the nature of the data in the body of an entity, by giving type and subtype identifiers, and by providing auxiliary information that may be required for certain types. Buildcontenttype This routine is exported by default. This routine builds email Content-Type header according to RFC 2045 and RFC 2231. It takes a hash as above, with entries for the type, the subtype, and optionally also a hash of attributes.
Gets or sets the value of the name parameter included in the Content-Type header represented by this instance.
Property Value
MIME types string mimecontenttype (string filename) The Multipurpose Internet Mail Extensions (MIME) system was designed to allow the formatting of emails so that they can include files easily, and is made up of several parts. Mimecontenttype is no longer deprecated, php7 has support for this function now. Earlier version of my answer: mimecontenttype is deprecated, probably because fileinfo can give you those information about the file and more. You can use finfo like shown below.
- String
A String that contains the value associated with the name parameter.
Examples
The following code example sets the value of the property to specify a name for a file being attached as a stream.
Remarks
In the following example of a Content-Type header, the value of the Name property is 'data.xyz'
.
content-type: application/x-myType; name=data.xyz
A grammar that details the syntax of the Content-Type header is described in RFC 2045 Section 5.1, available at https://www.ietf.org.
Mime Content Type Pdf
When specifying content for a Attachment as a Stream or String, you can use Name to set the name of the file that stores the content on the recipient's system.
Applies to
You can configure the storage system to send the appropriate MIME (Multipurpose Internet Mail Extensions) Content-Type value in each response to a get request from a client by mapping the file name suffix, for example, .gif, .html, or .mpg, according to information in the /etc/httpd.mimetypes file.
The MIME Content-Type value of a file tells a browser on a client how to interpret the file. For example, if the MIME Content-Type value shows that a file is an image file, and the client is configured properly, the browser can render the image by using a graphics program.
For more information about MIME, see RFC 1521.
Step
- Edit the entries in the /etc/httpd.mimetypes file.
Entries are in the following format:
# An optional comment.suffixContent-TypeLines preceded by the # sign are comments. The file name suffix is not case-sensitive.
Mime Content Type For Csv
Example
The following are sample entries:
Content Mime Types
A String that contains the value associated with the name parameter.
Examples
The following code example sets the value of the property to specify a name for a file being attached as a stream.
Remarks
In the following example of a Content-Type header, the value of the Name property is 'data.xyz'
.
content-type: application/x-myType; name=data.xyz
A grammar that details the syntax of the Content-Type header is described in RFC 2045 Section 5.1, available at https://www.ietf.org.
Mime Content Type Pdf
When specifying content for a Attachment as a Stream or String, you can use Name to set the name of the file that stores the content on the recipient's system.
Applies to
You can configure the storage system to send the appropriate MIME (Multipurpose Internet Mail Extensions) Content-Type value in each response to a get request from a client by mapping the file name suffix, for example, .gif, .html, or .mpg, according to information in the /etc/httpd.mimetypes file.
The MIME Content-Type value of a file tells a browser on a client how to interpret the file. For example, if the MIME Content-Type value shows that a file is an image file, and the client is configured properly, the browser can render the image by using a graphics program.
For more information about MIME, see RFC 1521.
Step
- Edit the entries in the /etc/httpd.mimetypes file.
Entries are in the following format:
# An optional comment.suffixContent-TypeLines preceded by the # sign are comments. The file name suffix is not case-sensitive.
Mime Content Type For Csv
Example
The following are sample entries:
Content Mime Types
In the sample entries, files whose names end with .pct or .pict are mapped to the MIME Content-Type value of image/pict. The first field in the Content-Type value describes the general type of data contained in the file; the second field is the data subtype, which shows the specific format in which the data is stored. If the browser on the client is configured to start a graphics program as a helper application, the user can view a file named file.pict as a graphics file on the client.