Maybe your ajax request is not success at all. I mean there are some errors in the middle process of uploading the image. Try add error
option on your ajax declaration.
$.ajax({
type:"POST",
data:formData,
url:"admin/products",
success: function(response) { // <-- will called if http response is 200
//console.log(response);
alert(response);
},
error: function(response) { // <-- will called if any error in server. http response: 400, 500, etc
//console.error(response);
alert(response);
}
});
Don't forget to enable your php error reporting and also checking the php error log will give you more information