<CFfile action="upload" nameconflict="makeunique" ...>

then if you need to rename it to something that makes sense:
<cfif file.filewasrenamed = "yes">
         <cffile source="[path]#file.ServerFile#" 
destination="path/newfilename.ext" ...>
</cfif>

At 05:05 PM 1/17/01 -0700, Jay Patton wrote:
>Sorry this didnt seem to go through the last time.....
>
>does anyone know of a way to make the server rename a file that is being 
>uploaded if it already exists? ie.
>if the file test.doc is already there is there a way that i can use the 
>makeunique or another command for that matter rename the file to 
>test_v2.doc, test_v3.doc ect....
>i have files that will be downloaded by clients manipulated and then 
>uploaded again. but i would like them to keep the same file name (sort of) 
>but just add a _v2, _v3 ect.. to the end of it? has anyone else ever dealt 
>with this? or have any ideas?  Your help is much appreciated.
>Thanks,

Now announcing my newly updated website
http://www.blivit.org/mr_urc/index.cfm
Resume: http://www.blivit.org/mr_urc/resume.cfm


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to