Name
CFCONTENT
Synopsis
<CFCONTENT>
Sends
content of the specified media type to the browser. Content may be
dynamically generated by ColdFusion or come from a file. The
CFCONTENT tag is often used to send files stored
above the web root directory to the browser or to generate content
for other non-HTML clients, such as wireless devices (cell phones,
PDAs, etc.).
Attributes
-
TYPE="media_type" The media type of the content to be sent to the browser. Required.
-
FILE="filename" The name of the file being sent to the browser. Optional.
-
RESET="Yes|No" Whether or not to suppress any output preceding the call to the
CFCONTENTtag. TheRESETattribute is ignored if a value is specified forFILE. The default isYes.-
DELETEFILE="Yes|No" Whether or not to delete the file after it has been sent to the browser. Valid only if a file was specified in the
FILEattribute. Optional. The default isNo.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access