const file = e.target.files[0];
const fd = new FormData();
fd.append('file', file);
axios.defaults.withCredentials = true
axios({
method: 'post',
headers: {
'Content-Type': 'multipart/form-data'
},
url: 'http://192.168.31.27/imageForPatent',
data: fd
}).then(function(response) {
if(response.data.code == '200') {
}
}).catch(function(error) {
console.log(error);
})