0

In my js file, I wrote this

var data = {
    'atc_file': $('#atc_file')[0].files[0],
};
$.ajax({
    url: strSendUrl,
    method: "POST",
    data: data,
    contentType: false,
    processData: false,
    success: function(result, request) {
        alert('Success');
    }
});

(atc_file is input [type='file']) But now I don't know how to store the file from PHP, is it possible to send file in this way?

0 Answers0