Can't you use the 'MAKEUNIQUE' attribute with the CFFILE tag?

Steve

------------------------------------------------------------------ 
Stephen Galligan
ColdFusion Developer
Thoughtbubble Ltd 
http://www.thoughtbubble.net 
------------------------------------------------------------------ 
United Kingdom 
http://www.thoughtbubble.co.uk/ 
Tel: +44 (0) 20 7387 8890 
------------------------------------------------------------------ 
New Zealand 
http://www.thoughtbubble.co.nz/ 
Tel: +64 (0) 9 488 9131
------------------------------------------------------------------ 
The information in this email and in any attachments is confidential and
intended solely for the attention and use of the named addressee(s). Any
views or opinions presented are solely those of the author and do not
necessarily represent those of Thoughtbubble. This information may be
subject to legal, professional or other privilege and further distribution
of it is strictly prohibited without our authority. If you are not the
intended recipient, you are not authorised to disclose, copy, distribute, or
retain this message. Please notify us on +44 (0)207 387 8890. 



-----Original Message-----
From: Aidan Whitehall [mailto:[EMAIL PROTECTED]]
Sent: 23 March 2001 12:57
To: CF-Talk
Subject: CFFILE ACTION="copy" and NAMECONFLICT


I'm using CFFILE to copy a file from one directory to another on the server.
What happens if the file already exists? It's telling me that I can't use
the NAMECONFLICT attribute when the ACTION is "copy":

========================================
Attribute set validation error in tag CFFILE

The tag has an invalid attribute combination: the value of the tag switch
attribute 'ACTION' which is now 'COPY' requires a different combination of
attributes. For the same switch attribute value the following unknown
attributes have been provided: (NAMECONFLICT).
========================================

Does it just automatically overwrite the file in the destination folder?
Have I got to use CFTRY and CATCH instead?

Seems nuts not to have this built into the CFFILE tag directly...


-- 
Aidan Whitehall <[EMAIL PROTECTED]>
Netshopper UK Ltd
Advanced Web Solutions & Services

http://www.netshopperuk.com/
Telephone +44 (01744) 648650
Fax +44 (01744) 648651
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to