Open m4v15 opened 5 years ago
the lines here https://github.com/FACK1/week8---SAAO/blob/45e8b5ec9a348206547a0d02638c86ff2ba38a98/src/controllers/img.js#L17-L23
Are unnecessary in express - you should use something like bodyParser to avoid having to do the streaming and listening for events, and make the post data accessible on req.body see here:
bodyParser
req.body
https://expressjs.com/en/4x/api.html#req.body
the lines here https://github.com/FACK1/week8---SAAO/blob/45e8b5ec9a348206547a0d02638c86ff2ba38a98/src/controllers/img.js#L17-L23
Are unnecessary in express - you should use something like
bodyParser
to avoid having to do the streaming and listening for events, and make the post data accessible onreq.body
see here:https://expressjs.com/en/4x/api.html#req.body