I am struggling with the following cffile code. I am trying to pass a dynamically generated images directory, the name of which is stored in a session variable (one for each new member). I need to pass that name to the destination attribute of the cffile tag:
Heres my code for processing the file upload
<cfset mypath=expandpath('UserImages/UploadedImages/' & '#session.details.uimages#')>
<cffile action="upload" destination="#mypath#" nameconflict="makeunique"/>
The upload works fine if I replace the #session.details.uimages# with an actual directory name. Is, what I am trying to do, achieveable or is this not possible?
Any help, or guidance will be welcomed as I am tearing my hair out!
Thank you all in advance!