how to use multer to upload a file in node js 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()
var multer = require('multer');
var upload = multer({dest:'uploads/'});