Wrox Programmer Forums
BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6
This is the forum to discuss the Wrox book ASP.NET 2.0 Instant Results by Imar Spaanjaars, Paul Wilton, Shawn Livermore; ISBN: 9780471749516
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old April 14th, 2006, 07:21 AM
Registered User
Join Date: Apr 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Multiple file uploads

Hello again,thanks for all your help guys. the albums coming along great.

My next query is how would you recommend I design multiple file uploads. There is the normal way of using two or more fileupload input options but these will only cater still for one file each.

I am wondering how to use one fileupload control to send multiple files to the server or even a whole folder containing many files. Is this supported by the basic control?I am guessing it isnt and so how would solve this problem?

I know that i have to place checks before saving each file to ensure each is an actual jpg or gif or whatever but that's another problem i guess.


Old April 16th, 2006, 08:18 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi Felix,

Browsers only allow you to upload one file at a time. That is, for each FileUpload control, you can only select a single file. Obviously, there is nothing that stops you from adding multiple upload controls on a single page.

I think there are some ActiveX controls (IE only) that allow you to select multiple files at once, but I have never worked with them.

Another alternative is to allow your users to upload ZIP files. They can select a single ZIP file with multiple pictures. On the server, you can unzip this file and then manage each individual picture.

With something like #ziplib (http://www.icsharpcode.net/OpenSource/SharpZipLib/) this is pretty easy to do.

Hope this helps,

Imar Spaanjaars
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Old April 17th, 2006, 10:37 AM
Authorized User
Join Date: Feb 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Shawn Livermore Send a message via Yahoo to Shawn Livermore

Another idea would be to allow the user to select, oh say, 5 files using 5 seperated upload controls... then, enter a page submission look where you upload each one, one at a time, in a loop... status bar would be great here... make sense?


Shawn Livermore

Similar Threads
Thread Thread Starter Forum Replies Last Post
asp uploads red_fiesta Classic ASP Basics 0 October 17th, 2007 04:28 AM
File Uploads seananderson Classic ASP Basics 1 November 14th, 2006 12:29 PM
How to add more file uploads? fyp4135 C# 2005 3 November 8th, 2006 11:55 PM
How to add more file uploads? fyp4135 ASP.NET 2.0 Basics 0 October 4th, 2006 09:06 AM
Multiple file input single file output.... jdm_mboy Biztalk 1 July 2nd, 2003 03:35 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.