Here I have used serialize method to fetch the data but I am not getting image from that please help to find the solution or give me alternative of serialize method.
$( "#button" ).click(function(){
$.ajax({
type: 'POST',
url: ajax_url,
enctype: 'multipart/form-data',
data:{
data_array:$( "#form" ).serialize(),
action: 'product_add_form_submit'
},
success: function (data) {
alert('Successfully Submitted');
}
});
});