File Uploading with the CFFILE Tag Using the CFFILE Extension (continued)

 by Tom Muck

Step 4: The CFFILE Server Behavior is an all-purpose CFFILE tag that allows you to do file uploading, deleting, renaming, appending, etc. Here is the interface. For this example, you should choose Upload.

Step 5: A few other fields need to be filled out.

  • The Destination field should be set to the destination folder on your server for the file upload. This can be browsed to by clicking the folder icon, or you can type the full path in the field



  • The Mode attribute can be left blank in most cases -- it defines permissions for an uploaded file on Solaris or HP-UX. It is ignored in Windows.
  • The Nameconflict can be left blank, or you can choose from the dropdown list to set it to Error, Overwrite, Skip, or MakeUnique.




  • Accept can be left blank, or you can set one or more MIME file types, such as image/gif or application/msword
  • FileField is a required attribute and is the name of the filefield from the page that posts the file.

<<<Previous Next >>>