<cfftp>
Lets users implement File Transfer Protocol (FTP) operations.
This tag cannot have a body.
This tag is also supported within <cfscript>
<cfftp
action=copy|exists|existsFile|existsDir|open|close|changeDir|createDir|getCurrentDir|getCurrentUrl|listDir|removeDir|getFile|putFile|quote|rename|remove
username=string
password=string
server=string
timeout=number
port=number
connection=string
proxyserver=string
proxyport=number
proxyuser=string
proxypassword=string
retrycount=number
stoponerror=boolean
passive=boolean
name=string
directory=string
asciiextensionlist=string
transfermode=string
remotefile=string
localfile=string
failifexists=boolean
existing=string
new=string
item=string
result=string
fingerprint=string
secure=string
recurse=boolean
key=string
passphrase=string
actionparam=string
>
Examples
FTP action open
<cfftp action="open" username="#FTPusername#" password="#FTPpassword#" server="#FTPserver#" port="#FTPPort#" connection="#connection_nam #"/>
FTP action close
<cfftp action="close" connection="#connection_name#"/>
FTP action listDir
<cfftp action="listDir" connection="#connection_name#" name="test" directory="/"/>
FTP action createDir
<cfftp action="createDir" connection="#connection_name#" directory="diretoryName"/>
FTP action removeDir
<cfftp action="removeDir" username="#FTPusername#" password="#FTPpassword#" server="#FTPserver#" port="#FTPPort#" directory="diretoryName"/>
FTP action existsFile
<cfftp action="existsFile" username="#FTPusername#" password="#FTPpassword#" server="#FTPserver#" port="#FTPPort#" remotefile="FileName"/>
FTP action putFile
<cfftp action="putFile" username="#FTPusername#" password="#FTPpassword#" server="#FTPserver#" port="#FTPPort#" remotefile="FileName" localFile="FileName"/>
FTP action existsDir
<cfftp action="existsDir" username="#FTPusername#" password="#FTPpassword#" server="#FTPserver#" port="#FTPPort#" directory="direcotryName" />
See also
- Internet Protocols
- <cfhttp>
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)