well then u copy and paste & change the #'s accordingly to accomidate how ever many images u want. and say that u have 5 images but that clothes line only has 3 pic then it will accept the 3 and ignore the other 2 empty fields
i actually pulled those out of a real estate app that has 5 images, i only copied the 1st 3 just to show the principle of it u can have as many as u want but the trick is what to do with the serverfile ---------- Original Message ---------------------------------- From: Joe Rinehart <[EMAIL PROTECTED]> Reply-To: [email protected] Date: Tue, 11 Jan 2005 16:19:53 -0500 >When it changes from 3 images to 5, this will break. > >-Joe > > >On Tue, 11 Jan 2005 15:51:35 -0500, dave <[EMAIL PROTECTED]> wrote: >> u dont need to loop just check to see if the file field is empty if not do >> the upload >> but be aware that u can only have 1 file.serverfile so be sure to set it >> before moving on to next one >> >> <!--- do the file 1 upload now ---> >> <cfif #form.picture1# NEQ ""> >> <cffile Action="upload" >> filefield="picture1" >> destination="#upload#" >> nameconflict="makeunique" >> accept="image/*"> >> <cfset picture1 = #file.serverfile#> >> </cfif> >> >> <!--- do the file 2 upload now ---> >> <cfif #form.picture2# NEQ ""> >> <cffile Action="upload" >> filefield="picture2" >> destination="#upload#" >> nameconflict="makeunique" >> accept="image/*"> >> <cfset picture2 = #file.serverfile#> >> </cfif> >> >> <!--- do the file 3 upload now ---> >> <cfif #form.picture3# NEQ ""> >> <cffile Action="upload" >> filefield="picture3" >> destination="#upload#" >> nameconflict="makeunique" >> accept="image/*"> >> <cfset picture3 = #file.serverfile#> >> </cfif> >> >> >> ---------- Original Message ---------------------------------- >> From: Will Tomlinson <[EMAIL PROTECTED]> >> Reply-To: [email protected] >> Date: Tue, 11 Jan 2005 15:21:59 -0400 >> >> >>>she said she might want up to three images per item >> >> >> >>Yep, but aren't clients notorious for saying "Wait, I meant five!"? >> >> >> > >> > >> >Yes indeed! I'm going to turn this into an array, then insert it. Might >> >need some help looping it into the table. :) >> > >> >I've only practiced with simple arrays, never really had a use for them >> >until now. >> > >> >Thanks, >> >Will >> > >> > >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:190003 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

