Uploading Multiple Files

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Uploading Multiple Files

Post by evilmonkey »

One of HTML's greatest pitfalls (at least in my opinion) is the fact that user cannot upload more than one file at a time (short of creating a new file box for each file). This is quite frustrating, and as such, I'm looking for a way to get around that. I want the user to be able to select a few files, perhaps even a whole folder and dump it on the server. Now, I know this is possible (facebook does it, my local photolab does it), but I have no idea how. Google turned up a number of solutions, but they all involved Java (a big no-no) and all cost money. Is there a way to aviod this?

Thank you!
User avatar
JellyFish
DevNet Resident
Posts: 1361
Joined: Tue Feb 14, 2006 7:18 pm
Location: San Diego, CA

Post by JellyFish »

Why not just use multiple upload fields?
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

Because users may want toupload a ridiculous amount of files (Have you seen how many pictures people put on facebook? :P )
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

User zips, user uploads zip, server unzips and validates all files, server places files in appropriate location(s).
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

evilmonkey wrote:Because users may want toupload a ridiculous amount of files (Have you seen how many pictures people put on facebook? :P )
Provide say 5 fields for the sake of accessibility then use JavaScript to "enhance" the page by adding new input fields once the user has filled all the exisiting ones. Seems reasonable to me :)
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

feyd wrote:User zips, user uploads zip, server unzips and validates all files, server places files in appropriate location(s).
That is actually a good idea, and one of the ones I'm currently entertaining. But I'm also looking for a solution where a user can select a bunchof files and click a button, without the user having to go through the 'zip' hassle.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The only way around the browser's file field is an extension or active content such as an ActiveX, Java, or some other client side embedded object.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

First: I just watched call for help the other day and they showcased a web site (can't remember the name) but it provided drag and drop file upload...using Flash 8 I think...search around google for uploading using Flash and see what you can come up with ;)

Second: Install a FTPd on your client computer and connect to the FTP server to generate a local file listing or use FSO ActiveX object?
Post Reply