|
I'll reiterate what Robert said. When you're
having problems with the file upload tag, this is the problem 99% of the
time.
--- Billy Cravens
----- Original Message -----
Sent: Monday, December 17, 2001 12:28
PM
Subject: RE:
ensure that the form tag also contains this
attribute.
enctype="multipart/form-data"
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
|