Take the cfoutputs out of the cfinput tag. Adrian
> -----Original Message----- > From: Fawzi Amadu [mailto:[email protected]] > Sent: 31 March 2009 16:54 > To: cf-talk > Subject: Cfform upload - Form Field contains no file > > > My code is throwing an error the baffles me. With the code below, when > I select the files I need to be uploaded, the server returns an error > that says that the field contained no file, while I had been able to > select a file for that field. What is wrong with my code: > > <cfform action="uploadExtraConsumerProductImages.cfm" > enctype="multipart/form-data" method="post"> > <cfloop index="i" from="1" to="#Session.numberoffields#" > step="1"> > <cfset filename = "#Session.ExtraProductImgName#" & #i#> > <!--- Set the respective file name for the uploaded image ---> > <cfinput type="File" > name="<cfoutput>#variables.filename#</cfoutput>" /><br /> > </cfloop> > <cfinput type="Submit" name="upload" value="upload" /> > </cfform> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321120 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

