function fileUpload(name) {
const form = new FormData();
form.append('file', fs.createReadStream('./test.yaml'))
axios.post(API + "/1.0/instances/"+name+"/files?path=%2Froot%2F.config%2Fcode-server%2Ftest.yaml", form)
.then(res => {
console.log(res.data);
})
.catch(err => {
console.log(err.response.data);
})
}
this function create empty file at specified path but I want to copy file from host to lxc