House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

OT: Uploading more than one file at a time?

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
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
Scott Weikert wrote:
Rick Root
11/01/02 03:47 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Shawn Regan
11/01/2002 12:43 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
charlie griefer
11/01/2002 01:26 PM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rick Root
11/01/2002 02:09 PM

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>

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Bob Haroche
11/01/2002 04:47 PM

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

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Scott Weikert
11/01/2002 02:13 PM

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?

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Rick Root
11/01/2002 03:47 PM

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

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Shawn Regan
11/01/2002 02:58 PM

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

Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Paris Lundis
11/01/2002 03:31 PM

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 -----


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 23, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference