im trying to build an api for which the client sends an image and i have to wait till the client sends complete data
here is the client part client image (postman client)
and here is how im trying to receive the data
app.post ("/img", (req: Request, res: Response) => {
console.log(req.complete);
if (req.complete) {
console.log(req.body);
}
res.send({"status": "working on the data"});
});
and this is the output
running on port 8088
false
size of the image is 1,093kb (1.06Mb)
im also using body-parser to parse the body of the request into json format