2

Error: Multipart: Boundary not found ReactJs & Axios

 1 year ago
source link: https://www.developerdiary.in/error-multipart-boundary-not-found/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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.

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK