我正在尝试这样做
<cfset noncooperativevariable = #serverfile#>
我得到一个未定义的服务器文件错误。当我尝试使用正确的变量范围时
<cfset noncooperativevariable = #CFFILE.serverfile#>
返回错误。
您试图将 java.lang.String 类型的标量变量取消引用为具有成员的结构。
编辑:
<cffile action="upload" filefield="fileUpload" destination="#destination#" nameConflict="makeUnique" result="upload">
<cfset noncooperativevariable = #fileUpload.serverfile#>