views:

1667

answers:

6

Hi Friends,

There are several resources available on net to upload multiple files, but using multiple FileUpload controls. What I need to have multiple file selection dialog box so that user can select multiple files at one shot and then all files should be uploaded on one click.

Anyone of you have any idea?

Thanks in advance.

+5  A: 

You may want to check out the Flajaxian controls - http://www.flajaxian.com/. They give you the ability to select multiple files at once for upload, and the control is free.

Paul McLean
Erk. I keep forgetting it's not 1999 any more. :)
MusiGenesis
Thanks Paul McLean.Thats a nice one. But I do need the filenames for other stuff such as storing thumbnails within database, saving the files with tempname as there are lots of files to be uploaded. Any idea?
IrfanRaza
A: 

I'm pretty sure you'd have to do this with a Java applet (or ActiveX control) that pops up a file open dialog and then assigns each of the file names selected to a hidden FileUpload HTML control.

MusiGenesis
+1  A: 

You should know that this is impossible using just the normal html and javascript code, due to security issues in the browsers.

To do that you will need to use another external way such as:

Flash -> SwfUpload, FancyUpload

Applet

ActiveX

Silverlight

Also check these questions:

WebDev: What is the best way to do a multi-file upload?

Best way to upload multiple files from a browser

ASP.net - Multiple Upload with jQuery Multiple File Upload Plugin

Amr ElGarhy
A: 

Check this uploader:

http://ajaxuploader.com/Demo/select-multiple-files-upload.aspx

DenialWhite
A: 

I can't comment on answers yet so i'm making a new answer to reply.

Paul McLean: thank you so much for providing the link! Flajaxian is great component and so easy to use.

IrfanRaza: you actually can get at the filename & stream for each file that is uploaded. Check out the Flajaxian documentation and follow their model for creating a FileUploaderAdapter. In the ProcessFile function you have access to the HttpPostedFile. The only problem i ran into was not having the proper mime type (its set to "application/octet-stream") but you can get around that by checking the extension to the file.

Noel
A: 

http://ajaxuploader.com/Demo/select-multiple-files-upload.aspx

hi friends can anyone send me source code for the above linked webpage, uploading multiple files with single browse button like gmail in asp.net(vb.net)

plz help me, send to my mail id [email protected]

sorry this is question