С
e.preventDefault();
let formData = new FormData($(this)[0]);
$.ajax({
type: 'post',
url:'../file',
data: formData,
cache: false,
contentType: false,
processData: false,
success: function(data) {
if (data == 'success') {
alert('123');
console.log(data);
}
}
});
e.preventDefault();
return false;
});