Thank you Jason.
I am on cf8 and these solutions will work just fine.

Terry

-----Original Message-----
From: Jason Fisher [mailto:[email protected]] 
Sent: Sunday, May 16, 2010 7:12 PM
To: cf-talk
Subject: Re: Multi file upload variables


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:333742
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to