Using cftree For Server Side File Selection

Allow for file selection so that a user could pick a data file on the server. now supports recursion (as of CFMX7), so getting the files is easy. Getting them into is a bit trickier because the returned query cannot be passed to as is ( needs a flat query, not hierarchical data).

The solution is actually quite simple, you need to add all of the relevant directories before you add the files with their paths, and then can do the rest. Here is a full working example of this in case anyone else finds it useful, the bulk of the work is the dirquery2treequery() function which does exactly what its name suggests.

Chris Charlton

Chris CharltonChris, Los Angeles' CSS & ActionScript guru, successfully cannonballed into web development in the late 90's. Always caught up with the latest in Flash, Dreamweaver, Fireworks, and XML, Chris authored premium articles for the largest Dreamweaver/Flash community (www.DMXzone.com) and produced WebDevDesign (iTunes featured), a popular Web Design & Development Podcast. Somewhere, Chris finds time to run an authorized Adobe user group focused around open source and Adobe technologies. Being a big community leader, Chris Charlton remains a resident faculty member of the Rich Media Insitute and lends himself to speak at large industry events, like JobStock, NAB, and FITC Hollywood.

Brain cycles from Chris are always Web Standards, Flash Platform, and accessibility.

See All Postings From Chris Charlton >>

Comments

Be the first to write a comment

You must me logged in to write a comment.