Do you have this attribute in your <form> or <cfform> tag? enctype="multipart/form-data"
Yves ----- Original Message ----- From: "William H. Bowen" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, July 01, 2002 2:43 PM Subject: CFFILE not "seeing" value in variable > I am using input type=file within a form to send a file location to CFFILE. > The problem I am having is that it (CFFILE) doesn't seem to want to > recognize the behave properly. > > CF 5 generates the following error: > > *** > Error in CFFILE tag > > The form field specified in the CFFILE tag (DOCUMENT_LOCALPATH) 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 (182:3) to (182:105). > *** > > Now, if I use the demonstration files supplied by Ben Forta in CFWACK to do > *exactly* the same thing with the same fieldnames, it works, the uploaded > file is passed correctly and the rest of my code executes. > > Could it be that input type=file does not like to behave correctly when > mixed with other form fields? I hope not as that would seriously limit its > usefullness to me. > > Da'code: > > <cffile action="upload" filefield="document_LocalPath" > destination="E:\temp\" nameconflict="overwrite"> > <cfx_putimage > datasource="#EXCPDatasource#" > user="emm_db_cp" > password="979475afr" > sql="UPDATE PageContent_en SET document_image = ? WHERE Content_ID = > #Content_ID#" > input="e:\Temp\#FILE.ServerFile#"> > > <cfquery name="updaterecord" datasource="#EXCPDataSource#"> > update PageContent_en > set Content_Name_en='#Content_Name_en#', > Content_Page_en='#Content_Page_en#', > ...other fields poassed by my form > document_LocalPath='#document_LocalPath#' > where Content_ID = #Content_ID# > </cfquery> > > TIA > > will > ---- > > William H. Bowen > Webmaster > ALSTOM Energy Automation & Information > > "Your friendly neighborhood Webmaster" > > [EMAIL PROTECTED] > http://www.esca.com/ > > 425.739.3629 Voice > 425.466.7016 Cell > 425.739.3690 FAX > > ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

