I am using VueJs / axios in frontend and multer in nodejs for a simple file upload to work.
So far all tries has been unsuccessful. While this can be achieved in 100 ways in angular 1/2 using ng-upload and other similar plugins. But VueJs seems to be lacking this basic functionality. Based on my research axios doesnt support "multipart/form-data". Ref https://github.com/mzabriskie/axios/issues/789 .
multer and other nodejs libraries seems to work with "multipart/form-data" seamlessly from angular 1/2. However same functionality is not working from VueJs.
Is there any other alternative other than axios which support "multipart/form-data" aka -- WebKitFormBoundary ??
Many Thanks
FormData
objects. Nor should it really,FormData
is a browser construct. Axios supports submitting FormData from a browser just fine. codepen.io/Kradek/pen/aWmomM?editors=1010