Railo 4.2 Reference
Choose a tag:

Tag <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.

Body

Dieses Tag darf einen Body haben, muss aber nicht.

Beispiel

	<cfcontent
		[content="binary"]
		[deletefile="boolean"]
		[file="string"]
		[range="boolean"]
		[reset="boolean"]
		[type="string"]
		[variable="any"]>

	[</cfcontent>]
	
Diese tag kann auch innerhalb von cfscript verwendet werden
	<cfscript>
		content
		[content="binary"]
		[deletefile="boolean"]
		[file="string"]
		[range="boolean"]
		[reset="boolean"]
		[type="string"]
		[variable="any"] {

	}
	</cfscript>

Attribute

Die Attribute für dieses Tag sind fest vorgegeben. Ausser den nachfolgend angegebenen Attributen dürfen keine weiteren verwendet werden.
Name Typ Required Beschreibung
content binary No This Attribute is deprecated 
deletefile boolean No 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. 
file string No The name of the file being retrieved 
range boolean No Yes or No. Yes allows download ranges, no forbids download range, default let it open for client. 
reset boolean No 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. 
type string No Defines the File/ MIME content type returned by the current page. 
variable any No the variable name to the content to output as binary