node.js - Streaming an uploaded file to an HTTP request -
my goal accept uploaded file , stream wistia using the wistia upload api . need able add fields http request, , don't want file touch disk. i'm using node , express , request , , busboy . the code below has 2 console.log statements. first returns [error: not implemented] , second returns [error: form-data: not implemented] . i'm new streaming in node, i'm doing fundamentally wrong. appreciated. app.use("/upload", function(req, res, next) { var writestream = new stream.writable(); writestream.on("error", function(error) { console.log(error); }); var busboy = new busboy({headers: req.headers}); busboy.on("file", function(fieldname, file, filename, encoding, mimetype) { file.on("data", function(data) { writestream.write(data); }); file.on("end", function() { request.post({ url: "https://upload.wistia.com", ...