User Guide

88 Chapter 2: ColdFusion Tags
Attributes
Attribute Req/Opt Default Description
type Optional The MIME content type of the page, optionally followed by a
semicolon and the character encoding. By default, ColdFusion
sends pages as text/html content type in the UTF-8 character
encoding.
The content type determines how the browser or client
interprets the page contents.
The following are some of the content type values you can use
include:
text/html
text/plain
application/x-shockwave-flash
application/msword
image/jpeg
The following list includes commonly used character encoding
values:
utf-8
iso-8859-1
windows-1252
us-ascii
shift_jis
iso-2022-jp
euc-jp
euc-kr
big5
euc-cn
utf-16
For example:
type = "text/html"
type = "text/html; charset=ISO-8859-1"
deleteFile Optional No Applies only if you specify a file with the
file attribute.
Yes: deletes the file on the server after sending its contents to
the client.
No: leaves the file on the server.
file Optional Name of file whose contents will be the page output. When
using ColdFusion in a distributed configuration, the
file
attribute must refer to a path on the system on which the web
server runs. When you use this attribute, any other output on
the current CFML page is ignored; only the contents of the file
is sent to the client.
reset Optional Yes The
reset and file attributes are mutually exclusive. If you
specify a file, this attribute has no effect.
Yes: discards output that precedes call to
cfcontent
No: preserves output that precedes call to cfcontent. In this
case all output is sent with the specified type.