<button id="test">test</button>
$(function () {
$('#test').on('click', function (e) {
e.preventDefault();
var formData = new FormData();
$.ajax({
url: '/mypage',
type: 'post',
data: formData,
processData: false,
contentType: false,
cache: false,
success: function (data) {
console.log(data);
}
})
})
});
TypeError: 'append' called on an object that does not implement interface FormData.