sitedev wrote: I have added at the end of the processing page where it inserts the records into the database. It sends an email for each file uploaded. I only want one email with a listing of all files uploaded during that one upload submission. |
You could use the following trick to create the list of uploaded files. At the beginning of the page containing the cffileupload tag, initialize a session variable to hold the list of uploaded files, thus
<cfset session.uploadedFileList = "">
In the page containing the tag <cffile action = "uploadAll">, place the following code after the tag:
<cfset session.uploadedFileList = listappend(session.uploadedFileList,cffile.serverfile)>
After the upload process, the list of uploaded files, session.uploadedFileList, will be available to every page.