JavaScript | Actions | CSS | Documentation |
  | Components | Databases | NAS | Links

Search the Workbench:

Description:
CFFile is used to perform various types of file management, including uploading files from a browser, moving, renaming, copying and deleting files, and reading and writing to text files.

What the CFFile component editor looks like

As you can tell this is a very powerful component.

Syntax: <CFFile ACTION=action ATTRIBUTE=attribute ATTRIBUTE=attribute ATTRIBUTE=attribute>

Action

Attributes

Comments

Append

OUTPUT FILE

Write the contents of the string specified in the OUTPUT to the end of the file specified in FILE.

Copy

SOURCE DESTINATION

Copies files from location specified in SOURCE to location specified in DESTINATION.

Delete

FILE

Delete file specified in FILE attribute.

Move

SOURCE DESTINATION

Moves file from location specified in SOURCE to location specified in DESTINATION

Read

FILE VARIABLE

Reads the contents of the file into the variable specified in VARIABLE. The VARIABLE is created if it does not exist.

Rename

SOURCE DESTINATION

Renames file specified in SOURCE to the filename specified in DESTINATION

Upload

ACCEPT DESTINATION FILEFIELD NAMECONFLICT

Used to upload file to the server using the filename found in FILEFIELD from the form and resolves filename conflicts using the value of the NAMECONFLICT attribute.

Write

OUTPUT FILE

Writes the contents of the string specified as OUTPUT to the file specified in FILE. The file is overwritten if it exists.

Go Back to Previous Page

Have a question that you canīt find the answer to? Want to report a possible bug?

Send a help request to NetObjects Technical Support