I've got a web application that uploads a small photo to a "temp" directory one level below the final directory where the photo files will reside (CF MX version 6,1,0,63958). After uploading the file (which IS successful---the file is uploaded to the temp directory), my intention is to validate it and then move the file to final directory. When I try to move the file, however, I get the infamous [tt]Attribute validation error for tag CFFILE[/tt] error. I've tried to fix the areas that have been mentioned in the numerous other posts regarding this error (e.g. dots in the path, file permissions, setting the path to a variable first, etc....) but so far with no luck.
Here's the code snippet that bombs (note that the file DOES exist at the source):
This gives me the following error:
What really gets me though is that if I hard code the path for the source in a separate test file (below), IT WORKS JUST FINE (the file is moved successfully)!
Does anyone have any ideas that might help???
Paul.
Here's the code snippet that bombs (note that the file DOES exist at the source):
Code:
<cfset pic="c:\websites\lifeline\comments\pictures\temp\#Session.Pic_File#">
<!-- This is for troubleshooting -->
<cfoutput>pic is: #pic#</cfoutput><br><br>
<cffile action = "move"
source = "#pic#"
destination = "c:\websites\lifeline\comments\pictures\">
This gives me the following error:

What really gets me though is that if I hard code the path for the source in a separate test file (below), IT WORKS JUST FINE (the file is moved successfully)!
Code:
<cffile action = "move"
source = "c:\websites\lifeline\comments\pictures\temp\Paul_Head.jpg"
destination = "c:\websites\lifeline\comments\pictures\">
Does anyone have any ideas that might help???
Paul.