December 17th, 2003, 07:52 AM
Join Date: Feb 2003
Location: Buffalo, NY
Time spent in forums: 10 h 59 m 53 sec
Reputation Power: 11
How do I know if a file is there?
I am trying to check to see if a specific file in a directory is there before I allow the user to move on.
I'm looking for a way to basically say,
<cfif #file# exists>
You need to upload the file.
I looked at the CFFILE and CFDIRECTORY tags, and they don't seem to have a way to check like this.
I looked into the list feature of CFDirectory, but I thought there must be a better way than to retrieve the list of files, then look through the list to see if the file name is there.
Thanks for the help.