When I try to run the following code, I'm getting the error message: "Element SERVERFILE is undefined in CFFILE."
. I've done this a million times. Can anyone see what I'm missing?
<cffile action="upload" fileField="fileField" destination="xxxx"
nameConflict="Overwrite" result="thisResult">
<cfoutput>#cffile.ServerFile#</cfoutput>
You are using the
result
attribute. So instead ofcffile.serverFile
, usethisResult.serverFile
.