Skip to content

Error: Multipart: Boundary not found ReactJs & Axios

Error : Multer Boundary not found

I got this problem when I uploading files to my NodeJs API from my ReactJs project. when I debugging this pdf or image file uploading functionality which is proper working with JavaScript fetch API but when I test with axios I am getting boundary not found error in reactjs. Then I understand the problem with my axios version. I was running the 0.27.1 version at that time.

To resolve Error: Multipart: Boundary not found in reactjs I did following steps

Step 1. uninstall your current axios version

npm uninstall axios

Step 2. Then we install latest version 0.27.2

then install version 0.27.2 or use any other version that you have used before you are getting this error. in my case it was version 0.21.4 and 0.27.2

npm install [email protected]

I think this solution will help you to solve your Multer boundary not found error in reactjs.

Node.Js Interview Questions And Answers

What Is UseQuery (React Query) With Example

What Is UseState Hook In React With Example

What Is UseContext Hook In React With Simple Example

What Is UseEffect Hook In React With Simple Example

Conclusion

When i got this issue I gone through many solution then I found this solution. Here you have to careful with you axios version when you are using multer in nodjs application.