Open sergeevpasha opened 4 years ago
Hey, Sorry for the late response.
Did you manage to find the root cause of the issue?
@farnabaz Barely remember, but seems like I change from $axios.$post to $axios.post and that helped
Thank you for the response, I think this should be fix in the latest, because module does not add any logic to these functions. And the result should be same in latest version. https://github.com/nuxt-community/axios-module/blob/main/lib/plugin.js#L45-L47
const formData = new FormData() formData.append('_method', 'PATCH') formData.append('signature', data.signatureFile, data.signatureName) $axios .$post(
/v1/users/1
, formData, { headers: { "Content-Type": "multipart/form-data" } })The same example works fine in vue + axios, but it's not working in nuxt + nuxt-axios-module