I've used <cfdirectory and <cffile to create a treeview for my app and it works great. Now I require the use of <cfftp to display directories/files on a server but would also like the similar functionality
of <cfdirectory and <cffile. I'm not sure how to go about this? When I click on a directory link how do I drilldown into that directory? Do I need to alsways reconnect via <cfftp action="">
I'm not understanding something here. This is all I have so far.
<CFFTP ACTION=""> USERNAME="<username>"
CONNECTION="ftpconnect"
PASSWORD="<password>"
SERVER="<server_ip>"
STOPONERROR="Yes">
<CFFTP ACTION=""> STOPONERROR="Yes"
NAME="ListFiles"
DIRECTORY="/temp"
CONNECTION="ftpconnect">
<table cellpadding="4" cellspacing="0" border="0" width="360">
<tr>
<td valign="top">
<CFOUTPUT QUERY="ListFiles">
<cfif attributes IS "Normal">
<cfset icon_image = "file.gif">
</cfif>
<cfif attributes IS "Directory">
<cfset icon_image = "folder.gif">
</cfif>
<img valign="middle" src="" border="0">#name#<br>
</CFOUTPUT>
</td>
</tr>
</table>
<CFFTP ACTION=""> CONNECTION="ftpconnect"
STOPONERROR="Yes">
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

