text/html; text/plain; application/msword; application/msexcel; application/poscript ; application/x-zip-compressed; application/pdf; application/rtf; video/x-msvideo. cfcontent type = “file_type” deleteFile = “Yes” or “No” file = “filename” reset = ” Yes” or text/html; text/plain; application/x-shockwave-flash; application/msword . systemHash=”> application/json”>
|Published (Last):||3 July 2008|
|PDF File Size:||2.41 Mb|
|ePub File Size:||6.60 Mb|
|Price:||Free* [*Free Regsitration Required]|
If you specify a file, this attribute has no effect. Usage To set the character encoding character set of generated output, including the page HTML, use code such as the following: Now, ColdFusion attempts to get the content type from the file.
For more information on character encodings, see the following web pages:. If a file delete operation is unsuccessful, ColdFusion throws an error.
This list uses Java applixation names, not the IANA character encoding names that you use in the SetEncoding charset parameter and other ColdFusion attributes and parameters. If a file delete operation is unsuccessful, ColdFusion throws an error.
Adobe ColdFusion * cfcontent
If you specify a file or variable attribute, this attribute has no effect; otherwise, it does the following:. The page at http: Category Data output tags. For a complete list of media types used on the Internet, see www.
For example, to tell ColdFusion to return the page using Japanese EUC character encoding, use the type attribute, as follows:. The following tag can force most browsers to display a dialog box that asks users whether they want to save the contents of the file specified by the cfcontent tag using the filename specified by the filename value. The MIME content type of the page, optionally followed by a semicolon and the character encoding.
Some file types, such as PDF documents, do not use executable code and can display directly in most browsers.
cfcontent Code Examples and CFML Documentation
The root of the reference is the ColdFusion page, not the location of the html page. The page at www. When you use this attribute, any other output on the current CFML page is ignored; only the contents cfcntent the file is sent to the client.
If the user selects to open the file, most browsers open the file in the related application, not the browser window. The filename must start with a drive letter and a colon, or a forward or backward slash. In this case all output is sent with the specified type.
The following are some of the content type values that you can use: The reset and file attributes are mutually exclusive. The content type determines how the browser or client interprets the page contents. Changed the behavior of the tag if the type attribute is not specified and the file attribute is specified. To request the browser to display the file directly, use a cfheader tag similar to the following: Cfcintent can specify this tag’s attributes in an attributeCollection attribute whose value is a structure.
Usage To set the character encoding character set of generated output, including the page HTML, use code such as the following: If the user selects to open the file, most browsers open the file in the related application, not the browser window.
Specify the structure name in the attributeCollection attribute and use the tag’s attribute names as structure keys.
For a complete list of media types used on the Internet, see www. Now, ColdFusion attempts to get the content type from the file. For file types that might contain executable code, such as Microsoft Excel documents, most browsers always ask before opening the document.
For many file types, such as Excel documents, that Internet Explorer can display directly in cfcoontent browser, the browser displays the file without asking users whether to save it if you use a cfcontenf tag similar to the following:.
For more information on character encodings, see the following web pages: Configuring and Administering Adobe ColdFusion 9. See also cfcolcfheadercfhttpcfoutputcftable. For more information on character encodings, see the following web aplpication