Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

unique file name on write

Enthusiast ,
Mar 08, 2012 Mar 08, 2012

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?

519
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 08, 2012 Mar 08, 2012
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources