Samugore If you specify a file or variable attribute, this attribute has no effect; otherwise, it does the following:. I have the same question Show 0 Likes 0. To troubleshoot, comment out the two lines that you showed and then browse to the page. Using cfcontent Correct Answers — 10 points. If you specify a file or variable attribute, this attribute has no effect; otherwise, it does the following:. When using ColdFusion in a distributed configuration, the file attribute must refer to a path on the system on which the web server runs.
|Published (Last):||13 June 2017|
|PDF File Size:||17.90 Mb|
|ePub File Size:||1.28 Mb|
|Price:||Free* [*Free Regsitration Required]|
When you use this attribute, any other output on the current CFML page is ignored; only the contents of the file are sent to the client. If a file delete operation is unsuccessful, ColdFusion throws an error. If the user selects to open the file, most browsers open the file in the related application, not the browser window.
For file types that might contain executable code, such as Microsoft Excel documents, most browsers always ask before opening the document.
For these file types, the inline content disposition specification requests the browser to display the file directly if the user selects to open the file. This list uses Java internal names, not the IANA character encoding names that you use in the SetEncoding charset parameter and other ColdFusion attributes and parameters. When using cfabort, cflocation, or cfcontent tags, the OnAbort method is invoked instead on OnRequestEnd.
Notice that the graphics do not display and the hyperlinks do not work, because the html page uses relative filename references. The root of the reference is the ColdFusion page, not the location of the html page. The user is prompted with an option to save the file or open it in the browser. Excel interprets the table format. Because Excel can include executable code, the browser prompts the user whether to save the file or open it in a browser.
Subscribe to RSS