This is to both Jason and Azad. Can I use a self generated ID for renaming the files instead of the function createuuid? TIA
>You don't want to use the '&' inside the CFFILE tag. Try this, assuming >#dest# is a variable holding a full file folder path ending with '\': > ><cfif structKeyExists(form, "upload")> > <cfloop index="i" from="1" to="#Session.numberoffields#" step="1"> > <cfset variables.filename = Session.ExtraProductImgName & i /> > <cffile action="UPLOAD" destination="#dest#" >nameconflict="makeunique" filefield="#variables.filename#" /> > <cffile action="RENAME" source="#dest##cffile.serverfile#" >destination="#dest##createuuid()#.#cffile.serverFileExt#" /> > </cfloop> ></cfif> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321564 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4