let button = document.getElementById('btn')
button.onclick = () => {
var formData = new FormData();
formData.append("zdarov", document.getElementById("file").files[0], 'a.png');
var xhr = new XMLHttpRequest();
xhr.open("POST", "http://localhost:3000/api");
xhr.send(formData);
}
router.post('/api', ctx => {
ctx.status = 200
console.log(ctx.request.body)
})