I've an array of images got from drag and drop using HTML5 and previously was submitting those through ajax.
But now I want to send these in a form WITHOUT using ajax.
What would be the approach? thanks in adv.!!
function upload(file) { // image file from drag n drop
var formData = new FormData();
formData.append("file", file);
var xhr = new XMLHttpRequest();
xhr.open("POST", "uploadServlet", true);
xhr.send(formData);
}