try:
<cfset variables.blah = '[filelocation filename you know exists]'>
<cfif fileExists(variables.blah)>
Success!!
<cfelse>
Failed!!
</cfif>
<cfdump var="#variables.blah#">


----------
William E. Seiter


On Apr 8, 2010, Fred Grainger <i...@fredgrainger.com> wrote: 


Took the hash marks out.  Put quotes, trimmed the variable, checked the length 
of the file name to make sure there weren't any control characters or anything. 
 My code is very straight forward.  

A day and a half later, still no dice.  This is the first time I've used this 
function.  We just upgraded to CF9 a few weeks ago, but it is up to date.

This makes no sense whatsoever.  When I type the file path into the FileExists 
function it works fine.  Will not work with a variable.  Period. 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332787
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to