MultipartParser.end(): stream ended unexpectedly
<p>I'm trying to make a form with option for image upload. I'm using <code>express-http-proxy</code> as my API proxy and <code>multer</code> as suggested.</p>

<pre><code>app.use('/api', upload.any(), proxy('http://localhost:3333'));
</code></pre>

<p>Issue is this error when submitting the form:</p>

<blockquote>
  <p>Error: MultipartParser.end(): stream ended unexpectedly: state = START_BOUNDARY
      at MultipartParser.end (/home/gabriel/Sites/city-amazing/api/node_modules/formidable/lib/multipart_parser.js:326:12)
      at IncomingMessage. (/home/gabriel/Sites/city-amazing/api/node_modules/formidable/lib/incoming_form.js:130:30)
      at emitNone (events.js:86:13)
      at IncomingMessage.emit (events.js:185:7)
      at endReadableNT (_stream_readable.js:975:12)
      at _combinedTickCallback (internal/process/next_tick.js:74:11)
      at process._tickCallback (internal/process/next_tick.js:98:9)</p>
</blockquote>

<p>How to handle any file upload using <code>express</code>?</p>