Save file to server using node js express
I’m not sure how to save a file type to the server I’m on in node. Here is my goal:
Express JS Sending Metadata with File
I am recieving files using node js on another computer and I want to send custom metadata from the computer I am uploading from. addonData
is an {} object with key value pairs that have information about the files I’m uploading. I am using formData.append
to add addonData, but on my server console.log(req.body)
returns {}
(req has tons of data including req.body: {},
).