|
Reference #form.image# instead of image in your filefield
spot.
C. Hatton Humphrey, Developer Fisher, Towne &
Associates 716-839-2141 x336 [EMAIL PROTECTED]
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
|