Express js Image upload and Text inputs using post method
<p><strong>I have following code for uploading image and handling text input. But both are not working together</strong> 
*Images are uploading properly but I can't get text field value *
<div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var express = require('express');
var multer = require('multer');
var mime    =   require('mime');
var app = express();
var bodyParser = require("body-parser");
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());

var storage = multer.diskStorage({
  destination: function (req, file, callback) {
    callback(null, './uploads');
  },
  filename: function (req, file, callback) {
    callback(null, file.fieldname + '-' + Date.now() + '.' + mime.extension(file.mimetype));
  }
});
var upload = multer({ storage : storage }).array('userPic');

app.get('/completeForm.html', function(req, res){
 res.sendFile(__dirname + '/' + 'completeForm.html')
});

app.post("/postFormAct", function (req, res, next) {
 console.log(req.body.user); // Here i getting undefined
 console.log(req.body.email);// Here i getting undefined
 
 upload(req,res,function(err) {
  console.log(req.files); // Here i getting proper output and image also uploading to concern folder
 });
 
});

app.listen(3000);</code></pre>
</div>
</div>
</p>

<p><em>Html code given below.... please help me someone</em> </p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form method="post" action="/postFormAct" enctype="multipart/form-data"&gt;
    &lt;input type="text" name="user"&gt;&lt;br&gt;
    &lt;input type="text" name="email"&gt;&lt;br&gt;
 &lt;input type="file" name="userPic"&gt;&lt;br&gt;
    &lt;input type="submit" value="Submit"&gt;
&lt;/form&gt;</code></pre>
</div>
</div>
</p>