krakenjs / express-enrouten

An express route initialization and configuration module.
Other
172 stars 38 forks source link

multer don't work on middlware #71

Open paulomcnally opened 9 years ago

paulomcnally commented 9 years ago

I using krakenJS

router.post('/new', multer({ dest: './public/files'}).single('upl'), function (req, res) {
    console.log(req.body); {}
    console.log(req.file); undefined
    res.send('xD');
  });

If i remove multer({ dest: './public/files'}).single('upl') req.body = {"name": "Foo"}

paulomcnally commented 9 years ago

On KrakenJS solved implementing this code with app.post on index.js.

How to work with express-enrouten?

Thanks