title: Node.js Busboy parse fields and files seperatly
body: <p>I was wondering if it is possible to get Busboy to parse the fields and files separately. (I have removed <code>bodyParser</code> as you can fill the hard drive with temp files very easily.)</p>
  
  <p>For instance - middleware which parsers post fields (used on all POST requests)</p>
  
  <pre><code>if (req.method === 'POST') {
      var form = new busboy({ headers: req.headers, limit: { files: 0 } });
  
      form.on('field', function (fieldname, val, valTruncated, keyTruncated) {
          req.params.body[fieldname] = val;
      });
      form.on('finish', function () {
          next();
      });
      return req.pipe(form);
  
  } else { next(); }
  </code></pre>
  
  <p>Then on upload pages use the following, which uses Busboy to get the posted files.</p>
  
  <pre><code>app.post('/fm/file/upload/:folder', function (req, res) {
      var isFrame = helpers.toBool(req.param('frame'), false),
          uploadService = fmUploadService.create(),
          userId = res.locals.info.User.Id,
          folder = helpers.toInt(req.param('folder', 0));
  
  uploadService.processUploads(userId, folder, req, res, function (uploadError, allowedAccess, files) {
          if (uploadError) {
              if (req.xhr) {
                  res.status(500);
                  res.json(uploadError);
              } else {
                  res.render('filemanager/file_upload.jade', { actionUrl: '/fm/file/upload/' + folder, tempData: files, isFrame: isFrame, err: uploadError });
              }
              return;
          }
          else if (req.xhr) {
              res.status(200);
              res.json(files);
              return;
          }
          res.render('filemanager/file_upload.jade', { actionUrl: '/fm/file/upload/' + folder, tempData: files, isFrame: isFrame, err: null });
      });
  });
  </code></pre>
  
  <p>Currently files will always be 0 as Busboy has already run within the middleware.</p>