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 CFCONTENT tag. The RESET attribute is ignored if a value is specified for FILE. The default is Yes.

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 FILE attribute. Optional. The default is No.

Get Programming ColdFusion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.