I have a jquery that let customer to drag and drop thier photo and aspx that uploads the image to a folder:
---------------------- AJAX--------------------
var xhr = new XMLHttpRequest();
xhr.upload.addEventListener('progress', uploadProgress, false);
xhr.onreadystatechange = stateChange;
xhr.open('POST', 'upload.aspx', true);
xhr.setRequestHeader('X-FILE-NAME', file.name);
xhr.send(file);
------------------------------ CODE BEHIND -------------
Dim input As Stream = DirectCast(Request.InputStream, Stream)
Dim bmp As New Bitmap(input)
Response.Clear()
Response.ContentType = "image/jpeg"
bmp.Save("C:\Websites\\Uploads\test1.jpg", ImageFormat.Jpeg)
NOW, I want to let customers to drag and drop multiple images at once.
Does XMLHttpRequest can handle multiple drag and drop?? If so how can I fetch through the files (in code behind) that has been dragged so I can upload them to my folder?
Thanks for any help