Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple File Selection For Uploading in ASP.NET

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.

like image 786
IrfanRaza Avatar asked Aug 03 '09 13:08

IrfanRaza


People also ask

How do I select multiple files using FileUpload control?

<asp:FileUpload runat="server" ID="UploadImages" AllowMultiple="true" /> <asp:Button runat="server" ID="uploadedFile" Text="Upload" OnClick="uploadFile_Click" /> <asp:Label ID="listofuploadedfiles" runat="server" />


2 Answers

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.

like image 51
Paul McLean Avatar answered Oct 24 '22 18:10

Paul McLean


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

like image 22
Amr Elgarhy Avatar answered Oct 24 '22 19:10

Amr Elgarhy