• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

12. Manipulating Files and Directories > 12.3. Performing FTP Operations

Performing FTP Operations

As we’ve already discussed, the cffile tag allows you to upload files from a client machine to the ColdFusion server and perform file and directory operations on your ColdFusion server. When you need to work with files and directories on a remote server, however, you need to use the cfftp tag instead.

Connecting to a Remote Server

FTP operations using the cfftp tag begin by opening a connection to the remote FTP server. The following example shows how to connect to an anonymous FTP server using the cfftp tag:

<cfftp action="Open"
       server="ftp.microsoft.com"
       port="21"
       username="anonymous"
       password="YourEmailAddress@yourdomain.com"
       connection="MyConnection"
       proxyserver="MyProxyServer"
       proxybypass="127.0.0.1"
       retrycount="3"
       timeout="60"
       stoponerror="No"
       passive="No">

PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint