This content has been marked as final. Show 4 replies
You can use "attachmentpath" and set "generateUniqueFilenames" to YES
(action must be set to "GetAll")
ok thanks but i need to rename the file to the user id number from a query how would i do that?
Use "queryname.attachmentfiles" as a variable to use alongside CFFILE.
"queryname" would be the name you assign to the CFPOP tag/POP query.
This will contain a list of the attachment files/locations ... you can loop through the list and use the CFFILE tag to rename it, if there is a file attached.