What is correct notation for complex variables
I need to manipulate files after upload. They are all uploaded in 1 directory by a flash component and then i need to rename them and move them to the directory that corresponds with choosen categories and subcategories. Now I am having problems with finding out how to get my variables correctly
It is about the variable thisFiletoMove1, it should correspond with the destination file in the cffile tag
<cfif FileExists('#request.site.imgupload#\max_#MultiPowUploadFileName_0#')>
<cffile action="rename"
source="#request.site.imgupload#\max_#MultiPowUploadFileName_0#"
destination="#request.site.imgupload#\#request.currentimgid#_max.jpg">
<cfset thisFiletoMove1 = #request.currentimgid#_max.jpg />
</cfif>
<cfset thisFiletoMove1 = #request.currentimgid#_max.jpg /> is giving an error Invalid CFML construct found, ColdFusion was looking at the following text:
_max.jpg
Then I try
<cfset thisFiletoMove1 = #request.currentimgid & "_max.jpg" /> and I get
The source C:\websites\beta.antiek.net\demo\galleries\test\thisFiletoMove1 specified in the cffile tag is invalid
So now I am wondering, what is the correct way to do this??
Bianca