session variables
Hi,
I am trying to add the names of my uploads, but it keeps replacing the first item rather than adding more to the array.
<cfif IsDefined ("FORM.docs")>
<cffile action="upload" nameconflict="overwrite" destination="#ExpandPath("../../uploads/news")#" filefield="FORM.uploadDocuments" />
<cfset SESSION.uploads = ArrayNew(1)>;
<cfset ArrayAppend(SESSION.uploads, #CFFILE.clientfile#)>
<cfdump var="#SESSION.uploads#">
</cfif>
Thanks,
Ross