Questions tagged [express-fileupload]

No advice has been provided for how to use this tag just yet!

The value of req.files consistently shows as undefined

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 ...

Sharp was unable to access the contents of the file buffer

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 ...

Issue when attempting to update user profile picture using Mongoose schema and Cloudinary

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 ...