CFFILE

Provides many operations that manage file input/output.

Usage

<cffile>

Attributes

Attribute default required summary
ATTRIBUTECOLLECTION A structure containing the tag attributes
ACTION The following actions can be performed using CFFILE: "delete", "copy", "move", "rename", "read", "readbinary", "upload", "uploadall", "write" and "append".
FILE Defines the file to perform an operation on. This should be a full path although if the "uridirectory" attribute is set to true it can be a relative path to the file. This is a required attribute when ACTION = "delete", "read", "readbinary", "write" or "append".
SOURCE The source for file operations. This is a required attribute when ACTION = "copy", "move" or "rename".
DESTINATION The destination for file operations. This is a required attribute when ACTION = "upload", "copy", "move" or "rename".
VARIABLE The variable name to read a file into. This is a required attribute when ACTION = "read" or "readbinary".
CHARSET Used to specify a character set to be used for file operations.
OUTPUT The data to be written to a file. This is a required attribute when ACTION = "write" or "append".
FILEFIELD The name of the field that should be used to select the filename. This is a required attribute when ACTION = "upload".
ACCEPT Allows only the MIME types specified in this attribute to be accepted during an "upload" operation.
RESULT Specifies a variable that will recieve the results of an upload operation.
ATTRIBUTES The following values can be specified in this attribute to alter the permissions on a file: "archive", "hidden", "normal", "readonly" and "system".
URIDIRECTORY NO Specify if the file location is a full path or a relative path.
ADDNEWLINE YES Specifies wether to add a new line to the end of a file during "write" and "append" operations.
NAMECONFLICT ERROR Specifies the action to be taken when a file operation has a name conflict, possible options include: "error", "overwrite", "makeunique" or "skip".