title: unexpected field error while making post request?
body: <p>I am getting unexpected field error while making post request ? here is my node js code</p>
  
  <pre><code>var express = require('express');
  var multer = require('multer');
  var bodyParser = require('body-parser');
  var cors = require('cors');
  var app = express();
  var PORT = process.env.PORT || 3000;
  var upload = multer({ dest: 'uploads/' })
  
  
  // use of body parser
  app.use(bodyParser.urlencoded({
      extended: true
  }));
  
  app.use(bodyParser.json());
  app.use(cors());
  
  
  
  
  app.post('/upload',upload.single('avatar'), function (req, res,next) {
  console.log(req.file);
  console.log('hello');
  res.send({data:'sss'})
  });
  
  
  app.listen(PORT, () =&gt; {
      console.log(`App is listening to ${PORT}`);
  })
  </code></pre>
  
  <p>I am using this plugin to upload file <a href="https://www.npmjs.com/package/multer" rel="nofollow noreferrer">https://www.npmjs.com/package/multer</a>
  when I hit my service through <code>postman</code> I am getting below error</p>
  
  <pre><code>**App is listening to 3000
  Error: Unexpected field
      at makeError (C:\Users\B0207296\WebstormProjects\uploadFile\node_modules\multer\lib\make-error.js:12:13)
      at wrappedFileFilter (C:\Users\B0207296\WebstormProjects\uploadFile\node_modules\multer\index.js:40:19)
      at Busboy.&lt;anonymous&gt; (C:\Users\B0207296\WebstormProjects\uploadFile\node_modules\multer\lib\make-middleware.js:114:7)
      at emitMany (events.js:147:13)
      at Busboy.emit (events.js:224:7)
      at Busboy.emit (C:\Users\B0207296\WebstormProjects\uploadFile\node_modules\busboy\lib\main.js:38:33)
      at PartStream.&lt;anonymous&gt; (C:\Users\B0207296\WebstormProjects\uploadFile\node_modules\busboy\lib\types\multipart.js:213:13)
      at emitOne (events.js:116:13)
      at PartStream.emit (events.js:211:7)
      at HeaderParser.&lt;anonymous&gt; (C:\Users\B0207296\WebstormProjects\uploadFile\node_modules\dicer\lib\Dicer.js:51:16)**
  </code></pre>
  
  <p>postman Image</p>
  
  <p><a href="https://i.stack.imgur.com/9897W.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9897W.png" alt="enter image description here"></a></p>