xxxxxxxxxx
let form_data = new FormData();
form_data.set('data', {
"image": this.state.file,
"title" : this.state.title,
"description": this.state.description,
});
ax({
url: '/api',
method: 'post',
data: form_data,
headers: {'content-type': 'multipart/form-data'}
})
.then(response => {
})
.catch(error => {
});