Skip to content

Instantly share code, notes, and snippets.

@scaleupcto
Created June 10, 2014 07:04
Show Gist options
  • Save scaleupcto/6c7493a867cb93dfd3d7 to your computer and use it in GitHub Desktop.
Save scaleupcto/6c7493a867cb93dfd3d7 to your computer and use it in GitHub Desktop.
app.use(function (req, res, next) {
if (req.headers['Content-Type']==="multipart") { // not quite right, but you get the gist
return multipartyMiddleware; // can't remember what your doc said to do here, but do that
} else {
return express.bodyParser();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment