[Vuejs]-Image Upload Using Vue, Node/Express and Multer

0👍

I had the same problem, try changing path omitting level up directories like this

tmpUploads/

To check if your file has been handled

console.log(req.file)

The output will look like this

{ 
    fieldname: 'profileImg',
    originalname: 'download.jpeg',
    encoding: '7bit',
    mimetype: 'image/jpeg',
    destination: 'tmpUploads/',
    filename: '1533819783059_profileImg',
    path: 'tmpUploads/1533819783059_profileImg',
    size: 11320 
}

Leave a comment