My issue is with req.files consistently returning undefined. Despite attempting connect-multiparty, body-parser, and express-fileupload, I can't seem to make it work with express-fileupload instead of multer. Can anyone help me troubleshoot this probl ...
Currently, I am utilizing express-fileupload to extract files from the API. My next step involves manipulating the image in the request body using Sharp. I want to avoid the traditional method of saving the file on the server and then processing it using ...
updateProfile: async function(req, res) { try { const update = req.body; const id = req.params.id; if (!req.files || Object.keys(req.files).length === 0) { return res.status(400).send('No files were uploaded.&a ...