User Guide

cfcontent 93
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:
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. The file
name must start with a drive letter and a colon, or a forward or
backward slash. 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 are sent to the client.