Select file with CFDIRECTORY
Posted on 2006-11-11
I want to select a text file from list of files in a directory and use that file name for a variable.
My resultant selection box is either empty or I get an error trying to use a variable. I guess I don't know how to set the variable name for the cfoop code so that the list displays or I don't know how to use cfdirectory, or both, or I need to take up Needle-point instead.
SORT="name ASC, size DESC"
<CFLOOP index="i" FROM="1" TO="#ListLen(Name)#">
How can I display a list of files in the directory, so I can then select one from the list to create a variable using the filename of the text file selected?