doesn't fileExists look to find the file on the server, not the local
machine. The form.description is the reference to the path & filename on the
client PC.

Alex

-----Original Message-----
From: Stocke Terri [mailto:[EMAIL PROTECTED]]
Sent: 05 April 2002 15:24
To: CF-Talk
Subject: FileExists returns NO every time, even with absolute path


Hi All,

This is maddening.

I am using FileExists to check for the existence of a file that I am
browsing to on my local machine. No matter what file I choose, the
FileExists function returns NO every time, even though I am 100% positive
that the file does exist. I have included a small portion of code that I am
using for debugging purposes.
The first outputted variable (form.description) displays the file path,
which is C:\MyDocs\app_request.doc. The second outputted variable displays
"NO". Even if I replace the form.description in the second outputted
variable with C:\MyDocs\app_request.doc, it still returns NO. Any ideas?

<cfif form.description is not "">

        <cfoutput>
                #form.description#<br>
                #fileExists("form.description")#        
        </cfoutput>
        
        <cfabort> 
                
        <cfif NOT #fileExists(form.description)#>
                Do this...
        </cfif>

Terri 


______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to