Skip to content Skip to sidebar Skip to footer

Formdata Sends Empty Data Using Axios

I want send my data from vue to api. I don't know why my formData is empty. You can see snapshot attached. I've tried several hours using several links on stackoverflow this link a

Solution 1:

data = {'file': this.imagefile , 'data': params}

axios.post('/api', data, header).then( response => { console.log(response); } )

Post a Comment for "Formdata Sends Empty Data Using Axios"