How to handle FormData from express 4
<p>I tried sending some form data to my node server but <code>req.body</code> has none of my form fields the node side</p>

<pre><code> var express = require('express')
var app = express()
var path = require('path')
var bodyParser = require('body-parser')
app.use(bodyParser.urlencoded({
  extended: true
}));

app.get('/', function (req, res) {
  res.sendFile('index.html')
})
app.post('/sendmail', function (req, res) {

  const formData = req.body.formData
</code></pre>

<p>this is what I'm sending from the browser</p>

<pre><code>fetch('/send', {
  method: 'POST',
  body: new FormData(form)
})
</code></pre>

<p>in dev tools I  only see the data passed in the Referer, maybe that is my issue</p>

<p>Referer:<a href="http://localhost:3000/?name=&amp;budget=%C2%A31000" rel="noreferrer">http://localhost:3000/?name=&amp;budget=%C2%A31000</a></p>