I have the following code to upload files .csv
and I need to show an alert , that is, a answer when I enter the succes , the problem is that it never enters the function.
$.ajax({
data: data,
type: "POST",
dataType: "json",
url: "class/query/q_addcargue.php",
processData: false,
cache:false,
contentType: false,
success: function (data){
alert("correcto");
}
});
I have sometimes used AJAX
and I think the problem is for these three lines of code:
processData: false,
cache:false,
contentType: false,
However, putting them in true
or removing them does not help he sent the file in AJAX
.