Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple Error Message During Uploading 1

Status
Not open for further replies.

chlebicki

Technical User
Jul 4, 2006
31
US
Hi,
Here is the error message I am getting:

Invalid CFML construct found on line 207 at column 114.
ColdFusion was looking at the following text:
#

The code it is referring to is:

207 <cfif isdefined("form.upload_#rsPamPic.PAM_ID#") and form.upload_#rsPamPic.PAM_ID# NEQ "">
208 <cffile accept="image/*" action="upload"
209 destination="C:\Documents and Settings\Craig\Desktop\PAM UploadedFiles\#rsPamPic.PAM_ID#" filefield="upload_#rsPamPic.PAM_ID#" nameconflict="makeunique">
<cfset Success="#rsPamPic.PAM_ID#">
</cfif>

I know it is referencing line 207 where the code is: and form.upload_#rsPamPic.PAM_ID# NEQ "">
because when I delete this code it doesn't return the error message. I need this part of the code becauase I don't want an error message to be return if the user submits a form and hasn't specified a file to be uploaded.

Thanks,
~Craig
 
Falcon,

I think that did it! Thanks man.

~Craig
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top