this:
<cfinput type="File" name="<cfoutput>#variables.filename#</cfoutput>" />

is just wrong. you can't nest cf tags like that, and you do not need to:
cf automatically evaluates variables in cf tag attributes:

<cfinput type="file" name="#variables.filename#"> will do just fine.

whay cf throws that error is a different issue. my guess would be
because you are giving a wrong value to FILEFIELD attribute of <cffile>
tag on the form's action page...

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/



Fawzi Amadu wrote:
> 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:321121
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to