Skip to content

Instantly share code, notes, and snippets.

@chris--young
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chris--young/8530a7fa9d4189ac1d1f to your computer and use it in GitHub Desktop.
Save chris--young/8530a7fa9d4189ac1d1f to your computer and use it in GitHub Desktop.
A simplification...
app.post('/images'
, function(req, res, next) {
var form = formidable.IncomingForm();
form.parse(req, function(err, fields, files) {
console.log('__err__', err); // err === [Error: Request aborted]
console.log('__fields__', fields); // fields === {}
console.log('__files__', files); // files === {}
next();
});
}
, _addImages
);
function _addImages(req, res, next) {
// This point is never reached.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment