Skip to content

Instantly share code, notes, and snippets.

@trenskow
Created November 10, 2012 12:50
Show Gist options
  • Save trenskow/4050981 to your computer and use it in GitHub Desktop.
Save trenskow/4050981 to your computer and use it in GitHub Desktop.
bodyParser and multipart/form-data
var express = require('express');
var app = express();
app.configure(function() {
app.use(express.bodyParser());
app.get('/', function(req, res, next) {
res.send(200);
});
app.post('/', function(req, res, next) {
console.log(req.files);
res.send(200);
});
app.listen(3000);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment