What error do you get? Also I dont think you need the cfoutput tags or the pound signs around the call to the left() function.
Kola Oyedeji |Web Developer |ekeda elthorne gate |64 high street |pinner |middx |ha55qa t +44(208)429 7333 f +44(208)429 7339 |www.ekeda.co.uk > -----Original Message----- > From: Bruce Sorge [mailto:[EMAIL PROTECTED]] > Sent: 03 January 2002 15:20 > To: CF-Talk > Subject: CFFile > > > I am using CF File to upload some files to a server. The > problem is that the field name is dynamically created. So, > since I do not know the exact name of the field, I am trying > use the dynamic field name. The problem is that I cannot use > # signs in the filefield attribute. Any assistance would be > appreciated. Below is my code. > > <CFLoop List = "#FORM.FieldNames#" Index = "x"> > <CFOutput> > <CFIF #Left(x, 6)# IS "Image_"> > <cffile action="UPLOAD" filefield="#Evaluate(x)#" > destination="c:\Web\cars\Master\CarImages\" nameconflict="OVERWRITE"> > <cfquery datasource="#Application.DSN#" name="qInsertCoupon"> > Insert Into Image (V_ID, Img_Location) > Values (1, '#File.ServerDirectory#\#File.ServerFile#') > </cfquery> > </CFIF> > </CFOutput> > </CFLoop> > ______________________________________________________________________ Why Share? Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc 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

