Hello - I have a client who is wanting to allow visitors to
files (by file name only) within a particular directory. The
page would then show a link to the document which could be a
.pdf or a
.doc. What is the best way to handle this search?
>You can use cfdirectory for this. It returns a query,
with one of the columns
> <cfdirectory directory="#fullPathToDirectory#"
> If you are not familiar with what gets returned, use
cfdump when you are
>testing it so that you can see both directory contents
but the column names as
> <cfdump var="#qryFiles#"/>
> From here, you can output results from the directory
search as you would a
> <cfoutput query="qryFiles">
> Hope this helps!