Sure. You can
1) upload the file initially to a temporary holding area.
2) Check to see whether the ultimate destination has a file by that name,
3) If not then move the file from the holding area to the final destination
and terminate.
4) If there is a file by that name then prompt the user to provide a
different filename.
5) If this new filename is available then rename the file and move it &
terminate. Otherwise repeat (4)

HTH

Steve


> -----Original Message-----
> From: Chad Elley [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 29, 2000 14:20
> To: CF-Talk
> Subject: RE: CFFile
>
>
> If a file with the same name already exists on the server, you can use a
> NAMECONFLICT="makeunique".  But what I want to know is if there
> is a way to
> see if it already exists on the server, and then prompt the user to rename
> the file, instead of CF handling this issue?
>
> Thanks,
> Chad
>
>
>
> -----Original Message-----
> From: Jim McAtee [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, October 29, 2000 1:47 AM
> To: CF-Talk
> Subject: Re: CFFile
>
>
> > How do I get the name of a file after it has been uploaded by a
> user using
> > cffile?
>
> See the documentation for CFFILE with action="Upload".  There are a whole
> slew of results variables, prefixed with 'file.', that give you
> the results
> of an upload.  The one that gives the filename on your server is
> 'file.ServerFile'.
>
> Jim
>
>
> ------------------------------------------------------------------
> ----------
> --------------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> or send a
> message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]
>
> ------------------------------------------------------------------
> ------------------------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> or send a message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]
>

------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to