Solved

File Queue

Posted on 2013-11-18
1
168 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now