目前,我已经
<cfset filedirectoryYear = "E:FilesSubmitted"&#form.current_year#&""&#form.division#&"">
<cfif FORM.attachment_1 neq "">
<cffile action="upload"
accept="text/plain,application/msword,application/pdf,application/rtf"
filefield="attachment_1"
destination="E: empuploads"
nameconflict="Makeunique"
>
<!--- rename the file and move it to permanent destination --->
<cfset submittedfileName =
#form.departmentname#&"_"&#form.departmentnumber#&"_"&#form.section_number_1#&"."&#cffile.ClientFileExt#>
<cfset presentfileName = #cffile.serverFileName#&"."&#cffile.ClientFileExt#>
<cffile
action="rename"
source="E: empuploads#presentfileName#"
destination=#filedirectoryYear##submittedfileName#
>
<!--- now create a temporary variable for the attachment so that it can be emailed later on --->
<cfset attachment_local_file_1 =
#filedirectoryYear#&#submittedfileName#&#cffile.ClientFileExt#>
</cfif>
<cfset attachment_local_file_1 = #filedirectoryYear#&#submittedfileName#>
在我提交时,我收到错误信息。
CFFILE的对应验证错误。
属性来源的价值(现为E:empuploadsFile.pdf
)是无效的,这一行文已经提及。
<cffile
action="rename"
source="E: empuploads#presentfileName#"
destination=#filedirectoryYear##submittedfileName#
>
<代码>直线年限/代码>途径已存在。 问题是什么? 我正在使用一台配有IIS的视窗机器的“夜晚8”