D'oh, she's right.  I said that it would be ok, but I was incorrect.  CF cannot verify 
the existence of a file on a users system before upload.

Michael Corrigan
Programmer
Endora Digital Solutions
1900 Highland Avenue, Suite 200
Lombard, IL 60148
630-627-5055 ext.-136
630/627-5255 Fax
  ----- Original Message ----- 
  From: Valerie L. Criswell 
  To: CF-Talk 
  Sent: Friday, April 05, 2002 9:30 AM
  Subject: Re: FileExists returns NO every time, even with absolute path


  I don't think the server can check for the existence of files on the user's
  machine via that function, although maybe there are some Java or ActiveX
  components that would allow this.  Best Regards,

  ~Val

  ----- Original Message -----
  From: "Stocke Terri" <[EMAIL PROTECTED]>
  To: "CF-Talk" <[EMAIL PROTECTED]>
  Sent: Friday, April 05, 2002 9:56 AM
  Subject: RE: FileExists returns NO every time, even with absolute path


  > Nope, I'm checking for it's existence prior to upload...
  >
  > -----Original Message-----
  > From: Valerie L. Criswell [mailto:[EMAIL PROTECTED]]
  > Sent: Friday, April 05, 2002 9:53 AM
  > To: CF-Talk
  > Subject: Re: FileExists returns NO every time, even with absolute path
  >
  >
  > If you're checking to make sure the file exists after it's uploaded, then
  > it's variable name has changed from form.description to file.serverfile.
  If
  > I'm understanding what's going on, what about trying
  > #fileExists(file.serverfile)# ?
  >
  > ~Val
  >
  > ----- Original Message -----
  > From: "Stocke Terri" <[EMAIL PROTECTED]>
  > To: "CF-Talk" <[EMAIL PROTECTED]>
  > Sent: Friday, April 05, 2002 9:41 AM
  > Subject: RE: FileExists returns NO every time, even with absolute path
  >
  >
  > > Tried that, too. Still returns NO. :(
  > >
  > > -----Original Message-----
  > > From: Don Vawter [mailto:[EMAIL PROTECTED]]
  > > Sent: Friday, April 05, 2002 9:44 AM
  > > To: CF-Talk
  > > Subject: Re: FileExists returns NO every time, even with absolute path
  > >
  > >
  > > Try this instead. You were looking for a file called  form.description
  > >
  > > #fileExists(form.description)#
  > >
  > >         ���
  > >          ~
  > > Don Vawter
  > >
  > > ----- Original Message -----
  > > From: "Stocke Terri" <[EMAIL PROTECTED]>
  > > To: "CF-Talk" <[EMAIL PROTECTED]>
  > > Sent: Friday, April 05, 2002 7:24 AM
  > > 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
  > > >
  > > >
  > >
  > >
  >
  > 
  
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.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