Site Loader

Name of a ColdFusion MX binary variable whose contents can be displayed by cfcontent type=”application/-excel” file=”c:/temp/acmesalesxls”>. ×. Note: This tag executes only if it is enabled in the ColdFusion Administrator. cfcontent type = “file_type” deleteFile = “Yes” or “No” file = “filename” reset text/ html; text/plain; application/x-shockwave-flash; application/msword; image/jpeg. systemHash=”> application/json”>

Author: Zulkilrajas Musida
Country: Portugal
Language: English (Spanish)
Genre: Politics
Published (Last): 18 March 2012
Pages: 123
PDF File Size: 12.93 Mb
ePub File Size: 4.44 Mb
ISBN: 654-3-52241-272-1
Downloads: 45297
Price: Free* [*Free Regsitration Required]
Uploader: Mazurr

This tag executes only if it is enabled in the ColdFusion Administrator.

The content type determines how the browser or client interprets the page contents. The following are some of the content type values you can use include: When using ColdFusion in a distributed configuration, the file attribute must refer to a path on the system on which the web server runs.

CFCONTENT | Adobe Community

When you use this attribute, any other output on the current CFML page is ignored; only the contents of the file is sent to the client. If you specify a file, this attribute has no effect.

  AKAI S2800 PDF

In this case all output is sent with the specified type. To set the character encoding character set of generated output, use code such as the following:.

You can use the cfcontent tag to override the default character encoding of the response.

For example, to specify the character encoding of the page output as Japanese EUC, use the type attribute, as follows:. If a file delete operation is unsuccessful, ColdFusion throws an error.

Adobe ColdFusion * cfcontent

If you use this tag after the cfflush tag on a page, ColdFusion throws an error. The following tag can force most browsers to display a dialog that asks users whether they want to save the contents of the file specified by the cfcontent tag as a with the filename specified by the filename value.

coldfusiln For many file types, such as Excel documents, that Internet Explorer can display directly in the browser, the browser displays the file without asking users whether to save it if you use a cfheader tag similar to the following:.

  KOHA 3.10 MANUAL PDF

For more information on character encodings, see the following web pages:. For a complete list of media types used on the Internet, see www.

The MIME content type of the page, optionally followed by a semicolon and the character encoding. Applies only if you specify a file with the file attribute. Name of file whose contents will be the page output. The reset and file attributes are mutually exclusive.