With this script, I can upload an image by jquery but how could do to upload more than one image at a time?
Also, How I receive for php all the images?
Thanks
var inputFileImage = document.getElementById('image');
var formElement = document.getElementById("RevisionTicket");
var file = inputFileImage.files[0];
var data = new FormData(formElement);
data.append('image',file);
var url = 'AprobarTicket2.php';
$.ajax({
url:url,
type:'POST',
contentType:false,
data:data,
processData:false,
cache:false,
beforeSend: function(){
$("body").addClass("loading");
},
success: function(data){
$("body").removeClass("loading");
//$("#contenidoSecPaginas").html(data);
alert(data);
},
});