Created
June 10, 2014 07:04
-
-
Save scaleupcto/6c7493a867cb93dfd3d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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