User Guide

Table Of Contents
1014 Chapter 41: Managing Files on the Server
2.
Modify the path C:\inetpub\wwwroot\mine so that it points to a directory on your server.
3.
Save the file as directoryinfo.cfm in the myapps directory under your web_root and view it in
the browser:
Using cfcontent
The cfcontent tag downloads files from the server to the client. You can use this tag to set the
MIME type of the content returned by a ColdFusion page and, optionally, define the filename of
a file to be downloaded by the current page. By default, ColdFusion returns a MIME content
type of text/html so that a web browser renders your template text as a web page.
As with
cffile and cfdirectory, you can disable cfcontent processing in the
ColdFusion MX Administrator.
About MIME types
A MIME type is a label that identifies the contents of a file. the browser uses the MIME type
specification to determine how to interact with the file. For example, the browser could open a
spreadsheet program when it encounters a file identified by its MIME content type as a
spreadsheet file.
A MIME content type consists of
"type/subtype" format. The following are common MIME
content types:
text/html
image/gif
application/pdf