<CFTRY> and <CFCATCH> to capture the 'file already exists' error

> -----Original Message-----
> From: Jamie Keane [SMTP:[EMAIL PROTECTED]]
> Sent: 23 October 2000 16:29
> To:   CF-Talk
> Subject:      Smart renames on images?
> 
> Hi folks,
> 
> I've got a project that requires that all images that are uploaded are
> named
> uniquely.  This would usually be a simple case of using the MAKEUNIQUE
> attribute in CFFILE but the client is picky about the names of the
> incoming
> files.  Therefore, the original name must be preserved.  If the desired
> filename already exists on the server, I need to let the user know, and
> rename the file accordingly.  What's the easiest and most efficent way to
> handle this?
> 
> --
> Jamie Keane
> Programmer
> SolutionMasters, Inc.
> 9111 Monroe Rd., Suite 100
> Charlotte, NC  28270
> www.solutionmasters.com
> 704.563.5559 x 228  Voice
> 704.849.9291  Fax
> 
> --------------------------------------------------------------------------
> ----------------------
> 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]


-----------------------------------------------
Any opinions expressed in this message are those of the individual and not necessarily 
the company.  This message and any files transmitted with it are confidential and 
solely for the use of the intended recipient.  If you are not the intended recipient 
or the person responsible for delivering to the intended recipient, be advised that 
you have received this message in error and that any use is strictly prohibited.

Sapphire Technologies Ltd
http://www.sapphire.net
------------------------------------------------------------------------------------------------
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