Hi Peter,
First you need to upload the file to the server, or at least the filename,
then check if there is an existing file with that name, if so then you need
to display this to the user and prompt whether to overwrite or not, at this
stage you already done a post to the server and returned a result to the
user.
I guess another way of doing it would be to use JavaScript and an Iframe or
similar, when the user submits the form you call a file in the Iframe that
checks if the file exists or not, if it does then you can do something like
bConfirm = confirm('Would you like to overwrite the existing file?');
return bConfirm
Hope that makes sense?
But to answer your question there is no vbyesno (as far as I am aware)
Taco Fleur
Blog http://www.tacofleur.com/index/blog/
Methodology http://www.tacofleur.com/index/methodology/
Tell me and I will forget
Show me and I will remember
Teach me and I will learn
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf
> Of Peter Mount
> Sent: Sunday, 1 February 2004 2: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