It would need to be 2 separate cffiles afaik. Most people however, like to upload files to temp folders, do some processing then move it to its final home. You CAN move and rename at the same time with one cffile... just give the destination the new path and file name
-----Original Message----- From: Les Mizzell [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 03, 2007 6:55 PM To: CF-Talk Subject: CFFILE - Upload and rename at the same time? Is there a way to upload and rename a file at the same time using CFFILE, or does that need to be two separate operations? I'm using a function to filter out spaces and unwanted characters in the file names like: #filterFilename(cffile.serverfile)# - and this works after the fact in a separate cffile operation - but I wanted to try and optimize my code a little.... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade & integrate Adobe Coldfusion MX7 with Flex 2 http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:265594 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4