I want sending formdata including objects in objects
let submit_obj = { test : { kor : "korea" , eng : "usa"} }
let test_form = new FormData();
test_form.append(test, submit_obj );
$.ajax({
url : '/api/filesave',
type : 'post',
dataType : 'josn',
data : test_form,
contentType : false,
processData : false,
success: function(res){
console.log('res',res);
}
});
and API response
req.body = Object { test : "[object Object]" }
How to extract the test value?? Thanks for your answer
dataType : 'josn',