You wouldnt be able to do the same thing here peter

Because for the confirmation type of prompt your after you would have to use
a javascript confirm prompt, but that would have to happen before the file
gets uplodaed.

What you are better off doing is uploaded the file to a holding area, then
checking to see if the file exists.  If it does then display a HTML form to
the user with the "This file already exists.  Do you want to overwrite it?"
message with a "YES" and "NO" button.  Then depending on what they click,
perform the action to either copy the uploaded file to the desired location
overwriting the existing file, or deleting it if they dont want to overwrite
it.

The good this about this method is that you could also display to the user a
text box with an option to give the file a new name and then copy it to
where its suposed to go so the user doe not have to upload it again.

Regards
Steve Onnis

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Peter Mount
Sent: Sunday, 1 February 2004 3:23 PM
To: CFAussie Mailing List
Subject: [cfaussie] cf equivalent of vbyesno


Hi

I'm just getting used to <cffile> (in this case with action="upload") and I
just want to do a user confirmation screen to see whether  or not the user
wants to overwrite and existing file in the upload directory.

In Visual Basic 6 I'd use vbyesno in the if statement. Is there something
similar in ColdFusion?

Thanks

Peter Mount
[EMAIL PROTECTED]

PS: for people who know me, I was succesful in getting into RMIT. I'll be
studying part time to finish my Diploma in IT there.


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to