Quantcast
Channel: Adobe Community : Discussion List - ColdFusion
Viewing all articles
Browse latest Browse all 6243

FileExists problems

$
0
0

I am trying to do test to see if a file is in a specific file folder location and if the file exists then it displays the icon to download it.  Here is the code I have so far and I just need a little help to get it going. The part #queryObj2.Video_path# is just part of a query that returns a name in the video_path.  Thanks.

 

CODE:

 

<cfset yourFile = "../download/files/powerpoints/"&#queryObj2.Video_path#&".pptx">

 

<cfif FileExists(yourFile)>

    <p>Your file exists in this directory. You entered the correct filename</p>

</cfif>


Viewing all articles
Browse latest Browse all 6243

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>