I get this error:
Error: Malformed part header
when making multipart/form-data request in Node.js - no code files visible in the error.
I'm encountering a "Malformed part header" error when trying to upload two files one video and another thumbnail in cloudinary I am certain that the file sizes of both does not exceed 100mb for free tier. The full error message from my console is:
Error: Malformed part header
at SBMH.sscb [as _cb] (C:\Users\samue\Desktop\Full-Code\Backend-course\node_modules\busboy\lib\types\multipart.js:398:32)
at feed (C:\Users\samue\Desktop\Full-Code\Backend-course\node_modules\streamsearch\lib\streamsearch.js:248:10)
at SBMH.push (C:\Users\samue\Desktop\Full-Code\Backend-course\node_modules\streamsearch\lib\streamsearch.js:204:16)
at Multipart._write (C:\Users\samue\Desktop\Full-Code\Backend-course\node_modules\busboy\lib\types\multipart.js:567:19)
at writeOrBuffer (node:internal/streams/writable:564:12)
at _write (node:internal/streams/writable:493:10)
at Writable.write (node:internal/streams/writable:502:10)
at IncomingMessage.ondata (node:internal/streams/readable:1007:22)
at IncomingMessage.emit (node:events:518:28)
at Readable.read (node:internal/streams/readable:790:10)
Interestingly, the error stack trace doesn't seem to point to any of my own project files. All the paths in the stack trace lead to files within the node_modules directory, specifically related to busboy.
Here's a link to my GitHub repository -> link
-> Is it caused by Postman? Because I tried using bruno, and encountered the same error
-> Any good alternative of the code to upload to cloudinary?