Thanks Mark,
I tried your OpenNtf database, I just customized your multiple image uploader xpage to fit in my requirement.
I have draged'n'dropped a file on the div having id 'imagesQueue'. I have the file object in javascript. Please see below code which I have added to add files in Queue.
I have modified Div as below:
<div class="fieldset rows" id="imagesQueue" ondrop="drop(event)"
ondragover="allowDrop(event)">
</div>
Javascript Code for Drag and drop:
function allowDrop(ev)
{
ev.preventDefault();
ev.dataTransfer.setData("Text", ev.target.id);
}
function drop(ev)
{
ev.preventDefault();
var FileList = ev.dataTransfer.files;
for (var i = 0, f; f = FileList[i]; i++)
{
if (f.type!="")
{
if(f.type!="undefined")
{
fileQueued(f);
}
}
}
}
After this its showing files inside the div having id 'imagesQueue'..
But problem is that when I clicks on the Start All uploads button it only processes files which are not selected by using Drag and drop.
Please let me know if I am making any mistakes in adding files in the Queue.
Thanks and regards,
Yogesh