Multiple File Uploads from One Dialog Window
Thursday, May 1st, 2008In one of our projects, we encountered a challenge to create the ability to upload multiple files from one browser window. Basically, a user will click on a “browse” button. The explorer window will popup. He/she can then select multiple files by pressing the “ctrl” or “shift” keys. Upon pressing OK, these files will be automatically updated. The challenge that we were facing was that most browser dialogs when it is triggered using the regular <input type=”file”> only allows ONE file to be selected.
So, we tried to do some research and we found that most of the solutions used Java Applet or some kind of programs that require installations. This was not the solution we were looking for. We wanted a solution that allowed that could be integrated without requiring the user to install any application.
And, then, we stumbled upon the SWFUpload.org. SWFUpload is “a small JavaScript/Flash library to get the best of both worlds. It features the great upload capabilities of Flash and the accessibility and ease of HTML/CSS [including upload multiple files at once by ctrl/shift-selecting in dialog]”. The great thing about this is that it has so many robust features including JavaScript callback, graceful degradation, and progress bar functionalities. Try out the demo here.
While Flash might require installation to the browser by the user, Flash is much more commonly used / integrated into browsers. Thus, our tunnel to find the solution has finally found the light at the end.
Email This Post












