Try these two files if it needs to be done in CF. The second one goes
through sub folders creating nodes on the CFTree recursively. I wrote them
so feel free to send me questions
directoryTree.cfm
----------------------------------
<cfset startFolder = "C:\whatever">
<cfdirectory directory="#startFolder#" name="folderList">
<cfoutput>
<cfform action="foo" method="post">
<cftree name="folders" completepath="no" required="yes"
message="You must choose a folder to continue" width="400">
<cftreeitem value="#startfolder#"
img="folderClosed.gif" imgopen="folderOpen.gif" expand="yes">
<cf_folderList folderPath="#startFolder#">
</cftree>
<br>
<br>
<input type="submit" name="letsGo" value=" GO! ">
</cfform>
</cfoutput>
----------------------------------
folderList.cfm
-----------------------------
<CFDIRECTORY DIRECTORY="#attributes.folderPath#" NAME="folders">
<cfoutput query="folders" startrow="3">
<cfif type IS "dir">
<cftreeitem parent="#attributes.folderPath#"
value="#attributes.folderPath#\#name#" display="#name#"
img="folderClosed.gif" imgopen="folderOpen.gif" expand="no">
<cf_folderList folderPath="#attributes.folderPath#\#name#">
</cfif>
</cfoutput>
-----------------------------
Bryan Love ACP
Internet Application Developer
Telecommunication Systems Inc.
[EMAIL PROTECTED]
-----Original Message-----
From: Stephenie Hamilton [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 1:52 PM
To: CF-Talk
Subject: file/directory browsing/selection
hi fellow cf'ers! hope everyone is doing good <ok enough chit chat>
i need to build an interface for file/directory browsing/selection that will
let the user select a file off the server...like the one in the CF
Administrator that can be used when you select your DSN...
any tips on which tag(s) to use would be most appreciated.
~~
Stephenie Hamilton
Macromedia Certified ColdFusion Professional
http://coldfusionwebs.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists