Fog Creek Software
Discussion Board




Welcome! and rules

Joel on Software

Multiple file uploads

I would like my user to be able to select a folder on their machine and upload all the contents to the server/somewhere else.

Am I being silly in not being able to find a way of doing this using 'normal' asp/vb.net

Can I get a few pointers!

Cheers!

Aidan
Friday, February 04, 2005

I don't think there's a way to upload multiple files over HTTP.

Colm
Friday, February 04, 2005

Other than having multiple upload controls on the same page and selecting each file individually.

Colm
Friday, February 04, 2005

The fastest way I can see right now is to get the user to create a zip and specify the zip in the upload file control.

Then process the zip on the server.

Le Poete
Thursday, February 10, 2005

There's nothing in standard HTML.

If appropriate (limited browser to IE/Win, ability to install software, etc.) you could write an ActiveX control that does what you need.

Brad Wilson
Friday, February 11, 2005

looking for the same thing ran acorss this: http://www.codeproject.com/aspnet/multiuploads.asp

Bill
Monday, February 14, 2005

I've been searching for a way to do this also.

The example at http://www.codeproject.com/aspnet/multiuploads.asp seems to generate the error: 'System.InvalidOperationException: Collection was modified; enumeration operation may not execute.' at the line 'foreach(System.Web.UI.HtmlControls.HtmlInputFile HIF in hif)'

I'm presently trying to us the IPWorks WebUpload component to do this, I want the user to select any file in a directory with the html file component, and then upload all of the files in that directory programatically so that I can make a DB entry for each file.  Problem with that is there's no good examples in the IPWorks documentation (I'm having trouble figuring the logic of the component), so I'm not even sure if its possible with that component.

KFarrell
Monday, March 28, 2005

*  Recent Topics

*  Fog Creek Home