> I've been using single file fields ... That's not always true. I do also use a multi-file uploader utility but I consider each multi-file upload to be one set when that is used.
Robert Harrison Director of Interactive Services Austin & Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_williams -----Original Message----- From: Robert Harrison [mailto:[email protected]] Sent: Tuesday, November 20, 2012 10:25 AM To: cf-talk Subject: RE: Can I create a form with several HTML5 multi-file uploads and send to unique destinations? I have definitely gotten around that by using loops, but I also have not been using file sets. I've been using single file fields named in such a way that I have a key to tell me which files belongs to a set. Robert Harrison Director of Interactive Services Austin & Williams Advertising I Branding I Digital I Direct 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 T 631.231.6600 X 119 F 631.434.7022 http://www.austin-williams.com Blog: http://www.austin-williams.com/blog Twitter: http://www.twitter.com/austin_williams -----Original Message----- From: Raymond Camden [mailto:[email protected]] Sent: Tuesday, November 20, 2012 10:06 AM To: cf-talk Subject: Re: Can I create a form with several HTML5 multi-file uploads and send to unique destinations? I want to add two kinda OT points here. CF9 (and earlier) has a bug with <input type="file" multiple> where it will only process the first file. As far as I know there is no workaround for this. CF10 handles it ok though. Dave said you can't have one form with multiple destinations. That isn't technically true. The HTML5 spec supports a formaction attribute for the <input> tag that allows multiple destinations for different fields in the same form. For the life of me I can't imagine using this often in the real world. Maybe in a combo login/register form, but there ya go. You can see the MDN spec here: https://developer.mozilla.org/en-US/docs/HTML/Element/button#attr-formaction On Tue, Nov 20, 2012 at 8:25 AM, Robert Harrison <[email protected] > wrote: > > You can send the file to different definitions if you loop over your > file sets rather than handle them all with one command. Then you can > change destination on each loop. > > Robert Harrison > Director of Interactive Services > > Austin & Williams > Advertising I Branding I Digital I Direct > 125 Kennedy Drive, Suite 100 I Hauppauge, NY 11788 > T 631.231.6600 X 119 F 631.434.7022 > http://www.austin-williams.com > > Blog: http://www.austin-williams.com/blog > Twitter: http://www.twitter.com/austin_williams > > > -----Original Message----- > From: Dave Watts [mailto:[email protected]] > Sent: Tuesday, November 20, 2012 9:13 AM > To: cf-talk > Subject: Re: Can I create a form with several HTML5 multi-file uploads > and send to unique destinations? > > > > I have a page where people need to be able to upload multiple files > > that > go to different places. I can use: > > > > <input type="file" multiple="multiple" name="fileSet1" /> <input > > type="file" multiple="multiple" name="fileSet2" /> <input type="file" > > multiple="multiple" name="fileSet3" /> > > > > To get the files but once I get to the back end I'm stuck. Using > > CFFILE with action="upload" only uploads the first file but at least > > I can send it to the right place. Using action="uploadall" sends all > > the > files to all the locations because I can specify a filefield value. > > > > Obviously I could have one form for each file set but that gets > > tedious > for the end user. Any suggestions? > > To answer the question you asked in the subject: no, you can't create > a form with several multi-file uploads and send them to unique destinations. > One form has ... one destination. > > But what you can do is move files around after they've been uploaded. > You shouldn't allow uploads to directories within your web root as a > general rule anyway until you can verify the safety of uploaded files. > So create a file uploader action page that uploads files to a safe > (non-web-accessible) location, verifies the safety of those files, > then moves the files where you want them to be. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > http://training.figleaf.com/ > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA > Schedule, and provides the highest caliber vendor-authorized > instruction at our training centers, online, or onsite. > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:353264 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

