<cfcontent>

Defines the MIME type returned by the current page. Optionally, lets you specify the name of a file to be returned with the page.

This tag may have a body.

This tag is also supported within <cfscript>

Attribute Description
content
binary, optional

this attribute is deprecated, use variable instead

range
boolean, optional

Yes or No. Yes allows download ranges, no forbids download range, default let it open for client.

reset
boolean, optional

Yes or No. Yes discards output that precedes the call to cfcontent. No preserves the output that precedes the call. Defaults to Yes. The reset and file attributes are mutually exclusive. If you specify a file, the reset attribute has no effect.

deletefile
boolean, optional

Yes or No. Yes deletes the file after the download operation. Defaults to No. This attribute applies only if you specify a file with the file attribute.

variable
any, optional

the variable name to the content to output as binary

file
string, optional

The full path to the file that should be sent to the client

type
string, optional

Defines the File/ MIME content type returned by the current page.

<cfcontent
    [content=binary]
    [range=boolean]
    [reset=boolean]
    [deletefile=boolean]
    [variable=any]
    [file=string]
    [type=string]
><!--- body --->[</cfcontent>]

Examples

There are currently no examples for this tag.

See also