Solved

File Queue

Posted on 2013-11-18
1
201 Views
Last Modified: 2013-12-05
Im trying to make my own uploadify, and getting quite far. My only todo task left is being able to add to the queue.

Currently I have:-
<input type="file" name="upfile_0" id="upfile_0" multiple="multiple" />

Open in new window


Which works great, however if the user tries to select another file it clear the old selection.

Is there anyway to add to the queue (and even better being able to remove from the queue)?

Does anyone have any ideas on where to go from here?

Thank you
0
Comment
Question by:tonelm54
1 Comment
 
LVL 30

Accepted Solution

by:
Alexandre Simões earned 500 total points
ID: 39658590
I think an idea would be to add multiple <input type="file" /> elements, one per file, even if they are added in groups.
For that you just have to use the "files" property of the input and in javascript loop through all of them generating a <input type="file" /> for each one.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
Today I would like to talk about localizing (Internationalization) JavaScript applications. Introduction When creating an application that is going to be used by many people around the globe, it is important to remember that not everyone speak…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question