<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.
If you specify a file or variable, that content is returned to the client and further processing stops, similar to a <cfabort> tag.
This tag may have a body.
This tag is also supported within <cfscript>
<cfcontent
type=string
deletefile=boolean
range=boolean
file=string
content=binary
variable=any
reset=boolean
><!--- body --->[</cfcontent>]
Unimplemented Attribute(s)
Attribute | Description |
---|---|
content
binary,
optional
|
this attribute is deprecated, use variable instead * deprecated * |
Examples
Cfcontent tag format
<cfcontent type="image/png" file="https://avatars1.githubusercontent.com/u/10973141?s=280&v=4">
Cfcontent script format
cfcontent(type="image/png", file="https://avatars1.githubusercontent.com/u/10973141?s=280&v=4");
See also
- Core CFML Language
- <cfflush>
- <cfheader>
- <cfhtmlhead>
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)