CFCONTENT

"-->
 <cfcontent          type = "file_type"          deleteFile = "Yes" or "No"          file = "filename"          reset = "Yes" or "No"> 

Description

Sets the file or Multipurpose Internet Mail Extension (MIME) content type returned by the current page. It can also specify the name of a file to return with the page. Note that this tag must be enabled in the ColdFusion Administrator.

Attributes

type (Required)

File or MIME content type returned by current page.

deleteFile (Optional)

Default: No. Applies only if you specify a file with the file attribute.

Yes: Deletes a file after the download operation.

file (Optional)

Name of the file to get. When using ColdFusion in a distributed configuration, the file attribute must refer to a path on the system on which the web server runs.

reset (Optional)

Default: Yes. The reset and file attributes are mutually exclusive. If you specify a file, this attribute has no effect.

  • Yes. Discards output that precedes call to CFCONTENT.

  • No. Preserves output that precedes call to CFCONTENT.

encoding (Optional)

Default: ISO-8859-1. The character encoding of generated output is text/html or any valid character encoding.



Inside ColdFusion MX
Inside Coldfusion MX
ISBN: 0735713049
EAN: 2147483647
Year: 2005
Pages: 579

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net