upload.single code example
Example 1: express multer
$ npm install --save multer
var express = require("express");
var multer = require('multer');
var upload = multer({dest:'uploads/'});
Example 2: multer npm
$ npm install --save multer file upload node