Use the CFILE tag to handle all interactions with files. The attributes you use with CFILE depend on the value of the ACTION attribute. For example, if the ACTION is "Write," ColdFusion expects the attributes associated with writing a text file. See the individual CFFILE topics below for details about which attributes apply to which ACTIONs.
ColdFusion administrators can disable CFFILE processing in the ColdFusion Administrator Basic Security page.
Depending on the value you assign to the ACTION attribute of CFFILE, there are several additional attributes you can set. This table shows which attributes you can use with each CFFILE ACTION.
Attributes Used with CFFILE ACTIONs | |
---|---|
ACTION | Attributes |
Upload | ACCEPT, DESTINATION, FILEFIELD, NAMECONFLICT, MODE, ATTRIBUTES |
Move | SOURCE, DESTINATION, ATTRIBUTES |
Rename | SOURCE, DESTINATION, ATTRIBUTES |
Copy | SOURCE, DESTINATION, ATTRIBUTES |
Delete | FILE |
Read | FILE, VARIABLE |
Write | OUTPUT, FILE, MODE, ATTRIBUTES |
Append | OUTPUT, FILE, MODE, ATTRIBUTES |