I’m experiencing a bug in item 4, and the current solutions aren’t working.
I did like this
app.post(‘/api/fileanalyse’, upload.single(‘upfile’), (req, res) => {
// The 4th requirement asks for name, type, and size
res.json({
name: req.file.originalname,
type: req.file.mimetype,
size: req.file.size // This is the value in bytes
});
});
If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.
The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.