English 中文(简体)
对应物的急性验证错误
原标题:Attribute validation error for tag CFFILE
  • 时间:2011-10-07 17:37:42
  •  标签:
  • coldfusion

目前,我已经

<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”

问题回答

您感到,CF指出的目的地不正确,但一位 observer的观察家会注意到,错误的信息指出“来源”是问题。

页: 1

来文方的错误主张为c: 课程表 网络基础2 页: 1

我 circle头并说,你正在打碎正确的法典。

对于这种错误,请检查你档案的行踪,在目的地或源行不正确的情况下发生这种错误。

check desired folder exist in same path
check Root Directory mean site URL is it correct 
print the path and verify it with your directory surely there will be  any conflict remove it that s why this error arising




相关问题
JQuery AJAX .load - flash chart doesnt load in IE

An IE issue has me completely stumped. I have a coldfusion page that uses JQuery s AJAX .load function to load in a new flash file that is generated by coldFusion s cfchart tag. This works completely ...

Best Coldfusion Library for OpenID [closed]

I am getting ready to start a project that requires using OpenID within Coldfusion 8. I have found a number of different options and was wondering what has worked the best, get s the most support, ...

Find ColdFusion Generated ID

Is there a way to find the elements generated by ColdFusion s <CFLayout> and <CFLayoutArea> tags? These tags: <cflayout type="tab" name="MyAccount"> <cflayoutarea name="...

ColdFusion COM error

I am upgrading from CF4.5 to CF8. Calls to COM dll s that used to work in version 4.5 now throw a "Complex object types cannot be converted to simple values.." error. The COM object has a few arrays ...

What s the best way to write engine-specific CFML code?

Sometimes it is necessary to write different code for Adobe ColdFusion vs Railo vs OpenBD, due to differences in implementation. Do people have a specific method that they use for this? For example, ...