Well, at first I did work out a way (with some help!) to us JS to generate the additional file fields and give each one a unique name, however, I realized that since the user is generating the inputs and the input's name, I would have to automatically generate some CFML to correspond to the generated file fields for processing.
For example, with a comma-delimited list of file field names, I could use a loop with for=1 to len(comma-delimited list) (pseudo code) and loop through the file names for cffile processing and inserting into a db. However, with uniquely name fields being created by the user, how would I let CF know how many fields it needed to process? If I know how many file fields a user created, I would know exactly what the field names would be, because the JS increments the names starting with image-upload-1, then image-upload-2, etc. So, how would I handle the processing not knowing the number of fields being passed by the form to CF? Rick > -----Original Message----- > From: James Holmes [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 20, 2008 11:25 PM > To: CF-Talk > Subject: Re: Brain not working... how do I get these values? > > Can you name the file fields independently (i.e. do they have to be > the same name)? > > On Fri, Mar 21, 2008 at 11:45 AM, Rick Faircloth > <[EMAIL PROTECTED]> wrote: > > Ok. so I'm trying, for the first time, to set up > > unlimited file inputs for users. > > > > I'm using a jQuery plug-in, which works fine. > > > > What I can't figure out is how to get the values > > for the image fields so I can loop over them in > > the cffile and query actions. > > -- > mxAjax / CFAjax docs and other useful articles: > http://www.bifrost.com.au/blog/ > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301724 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4