octet-stream / form-data

Spec-compliant FormData implementation for Node.js
https://www.npmjs.com/package/formdata-node
MIT License
142 stars 17 forks source link

source.on is not a function #82

Open kale1d0code opened 1 week ago

kale1d0code commented 1 week ago

using Axios to post FormData to a URL I am attempting to submit a file

I grab the file data using your fileFromPath method.

When Axios attempts to send, I get the error message:

source.on is not a function

octet-stream commented 1 week ago

Hi. Thanks for reaching me out. I need more information before I can help:

  1. What Node.js version you use
  2. Also, what Axios and formdata-node
  3. Minimal reproduction code would also help