|
Mailing Lists
|
Home /
Groups /
ColdFusion Talk (CF-Talk)
OT: Uploading more than one file at a time?
Hello,Shawn Regan 11/01/02 12:43 P Shawn Regan writes:charlie griefer 11/01/02 01:26 P Shawn Regan writes:Rick Root 11/01/02 02:09 P Just saw this free custom tag on the MM exchange that is supposed toBob Haroche 11/01/02 04:47 P IE for the PC tends to allow multiple <input type="file"> fields in a form,Scott Weikert 11/01/02 02:13 P Scott Weikert wrote:Rick Root 11/01/02 03:47 P Yeah, I wanted to stay away from using multi input type=file.Shawn Regan 11/01/02 02:58 P IE for the Mac is the biggest piece of junk on the planet...Paris Lundis 11/01/02 03:31 P Hello, Does anyone know of a component or anything that will allow a user to upload more than one file at a time within the browser? TIA Shawn Regan pacifictechnologysolutions 15530-B Rockfield Blvd. Suite 4 Irvine, CA 92618 949.830.1623 w w w . p t s 1 . c o m Shawn Regan writes: > Hello, > > Does anyone know of a component or anything that will allow a user to upload > more than one file at a time within the browser? > I'm pretty sure you'd just have to loop over the individual files...provide x number of <input type="file"> fields, and loop on the form's action page. on a side note (and not to get further OT)...there are a few 'photo sharing' sites that let you upload photos from digital cameras...ofoto.com in particular has a really nifty (did i just say nifty?) little page where you drag and drop files from your desktop/windows explorer/etc onto a particular spot within the browser, and it performs the upload. I just thought it was pretty neat (did i just say neat?). charlie Shawn Regan writes: > >Hello, > >Does anyone know of a component or anything that will allow a user to upload >more than one file at a time within the browser? I have a little app that I wrote a while ago that I've incorporated into some of my software that is basically a web-based file manager. From the submission form: <FORM METHOD="POST" ACTION="upload.cfm" ENCTYPE="multipart/form-data"> 1.<INPUT TYPE="file" NAME="File1"><BR> 2.<INPUT TYPE="file" NAME="File2"><BR> 3.<INPUT TYPE="file" NAME="File3"><BR> 4.<INPUT TYPE="file" NAME="File4"><BR> 5.<INPUT TYPE="file" NAME="File5"><BR> <BR> <INPUT TYPE="SUBMIT" VALUE="Upload Files"> </FORM> And in the upload.cfm file.... <CFSET UploadDir = "C:\Inetpub\wwwroot\uploads"> <CFLOOP FROM=1 TO=5 STEP=1 INDEX="FileNumber"> <CFSET ThisFileExpression = "File#FileNumber#"> <CFSET ThisFile = Evaluate(ThisFileExpression)> <CFIF Trim(ThisFile) neq ""> <CFFILE ACTION="UPLOAD" FILEFIELD="FILE#FileNumber#" DESTINATION="#UploadDir#" NAMECONFLICT="OVERWRITE"> <CFIF File.FileWasSaved> <!-- do something --> <CFELSE> <!-- maybe generate some error message here --> </CFIF> </CFIF> </CFLOOP> Just saw this free custom tag on the MM exchange that is supposed to handle this: MultiCFFile http://makeashorterlink.com/?P4DD23052 ------------- Regards, Bob Haroche O n P o i n t S o l u t i o n s www.OnPointSolutions.com IE for the PC tends to allow multiple <input type="file"> fields in a form, and pass them on correctly. IE for the Mac, however, ceases passing on form fields when it hits a "file" one, I've found, and therefore any subsequent file input fields get dropped. Not 100% sure on Netscape. At 09:39 AM 11/1/2002 -0800, you wrote: >Hello, > >Does anyone know of a component or anything that will allow a user to upload >more than one file at a time within the browser? Scott Weikert wrote: > IE for the PC tends to allow multiple <input type="file"> fields in a form, > and pass them on correctly. IE for the Mac, however, ceases passing on form > fields when it hits a "file" one, I've found, and therefore any subsequent > file input fields get dropped. Not 100% sure on Netscape. One of my former clients, AWARE Records, is a purely Mac shop. I could NEVER figure out why the file uploads didn't work for them in Internet Explorer, so I always forced them to use Netscape when administering their site.. at least, if they wanted to do file uploads. I feel so.. relieved.. by your statement about IE on Mac. It wasn't my problem. Yay! - Rick Yeah, I wanted to stay away from using multi input type=file. I have seen sites with drag and drop uploads. I have developed a drag drop app with Sash. But I wanted to find something else for now. Thanks Shawn Regan pacifictechnologysolutions 15530-B Rockfield Blvd. Suite 4 Irvine, CA 92618 949.830.1623 w w w . p t s 1 . c o m Shawn Regan writes: > Hello, > > Does anyone know of a component or anything that will allow a user to upload > more than one file at a time within the browser? > I'm pretty sure you'd just have to loop over the individual files...provide x number of <input type="file"> fields, and loop on the form's action page. on a side note (and not to get further OT)...there are a few 'photo sharing' sites that let you upload photos from digital cameras...ofoto.com in particular has a really nifty (did i just say nifty?) little page where you drag and drop files from your desktop/windows explorer/etc onto a particular spot within the browser, and it performs the upload. I just thought it was pretty neat (did i just say neat?). charlie IE for the Mac is the biggest piece of junk on the planet... Lately, I have been tweaking a site to work on both PC and MAC in IE and Netscape... IE on MAC acts different than on the PC and different than Netscape.... The behaviors are generally different enough on this tight pixel design implementation that we have had to pad everything everywhere... YUCK! to the MAC.. and to IE on the MAC... anyone have any numbers on total browser using a MAC anyways... figure that is 5% maximum viewership... Paris Lundis Founder Areaindex, L.L.C. http://www.areaindex.com http://www.pubcrawler.com 412-292-3135 [finding the future in the past, passing the future in the present] [connecting people, places and things] ----- Excess quoted text cut - see Original Post for more -----
|
May 23, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||