anacronw / multer-s3

multer storage engine for amazon s3
MIT License
660 stars 190 forks source link

req.body is empty in key function #71

Closed will-fgmnt closed 7 years ago

will-fgmnt commented 7 years ago

When sending a payload with a file and additional text fields I would expect req.body to contain these text field but it just returns an empty object. Is this intentional?

My use-case is I want to construct the file path based on these additional fields.

anacronw commented 7 years ago

req.body doesn't get populated by multer - you're probably looking for the body parser https://github.com/expressjs/body-parser