One way is to set vars after each upload:
<cffile action="upload" fileField="pic1" />
<cfset fileName1 = cffile.serverFile />

<cffile action="upload" fileField="pic2" />
<cfset fileName2 = cffile.serverFile />

The other way (if you're not on CF6.1 still) is to use the result param:
<cffile action="upload" fileField="pic1" result="upload1" />
<cffile action="upload" fileField="pic2" result="upload2" />
<cfset fileName1 = upload1.serverFile />
<cfset fileName2 = upload2.serverFile />



On 5/16/2010 9:32 PM, Terry Troxel wrote:
> If I have a form with two form fields pic1 and pic2, how do I get a return
> variable cffile.serverfile for each after a successful upload?
>
> Terry
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:333741
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to