var formData = new FormData(); for (var i = 0; i < $("#files")[0].files.length; i++) { formData.append("file", $("#files")[0].files[i]); } $.ajax({ type: "post", url: '', data: formData, cache: false, processData: false, contentType: false, success: function (res) {
}
})