try doing it like
<cfif trim(form.image) is not ''>
your code here
</cfif>
Perhaps you're just passing a space. - Palyne
On 17 Dec 2001 at 12:26, PK Work wrote:
I keep getting the following error when I send this code:
<cfif #Form.Image# IS "">
<!--- Take no action --->
<cfelse>
<cffile action="UPLOAD"
filefield="Image"
destination="D:\html\users\cfxa926\bbeaorg\html\Images\"
nameconflict="OVERWRITE">
<CFQUERY NAME="AddImage" DATASOURCE="#datasource#">
UPDATE Items
SET Image='#cffile.ClientFile#'
WHERE ItemID = #Attributes.ItemID#
</CFQUERY>
</cfif>
--------------------------
Error Diagnostic Information
Error in CFFILE tag
The form field specified in the CFFILE tag (IMAGE) does not contain
an uploaded file. Please be sure that you have specified the correct
form field name. The error occurred while processing an element with
a general identifier of (CFFILE), occupying document position (32:2)
to (35:30). ----------------------------------- I have never gotten
this error before, and cannot seem to figure out what it means. The
field name IS #Image# and seems to work just fine everywhere else in
the application.
thanks!
PK
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org