Skip to main content
nikos101
Inspiring
March 8, 2012
Question

unique file name on write

  • March 8, 2012
  • 1 reply
  • 542 views

hi, I can seem to get the unique file name to work with this:

<cffunction name="saveCSV" access="remote" returntype="String" >
<cfargument name="data" type="string" required="yes"/>
<cffile action='Write'  nameConflict="makeunique"  file="#expandPath('userData/data.csv')#" output='#data#' >
</cffunction>

any ideas of a solution cf buddies?

    This topic has been closed for replies.

    1 reply

    BKBK
    Community Expert
    Community Expert
    March 8, 2012

    Nameconflict is not an attribute of <cffile action='Write'>. Leave it out.