I\'m working on uploading a file to my app using the multer npm module.
The multer function I have defined is to allow a single file uploaded to the file system. Ev
The you use in multer's upload.single() function must be the same as the one you use in .
upload.single()
So you need to change
var type = upload.single('file')
to
var type = upload.single('recfile')
in you app.js
Hope this helps.