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.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
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.
Method 2
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
Method 3
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.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0