I have a markup like this I am not using form for this now I want to upload an image using ajax
$('#file').on('change', function(e) {
    $.ajax({
        url: "upload.php",
        type: "POST",
        data: ?,
        processData: false,
        contentType: false,
        success: function (response) {
            console.log(response);
        }
    });
})
in data what I have to send? I got this ajax in stack overflow only but I am not able to understand. And one more thing how can I recive the data in PHP file
thank you?
 
     
     
     
     
    