Input namespace parsing
bencevans opened this issue · comments
Using Express's old bodyParser with a form that has input names of some[thing]=hello
the req.body
would look like:
{
some: {
thing: 'hello'
}
}
however using connect-multiparty I get:
{
'some[thing]': 'hello'
}
has anyone encountered this and found a parser to achieve the first hash?
Cheers,
Ben
This module does construct the first option. You are obviously having some kind of middleware conflict somewhere, not this module. You can even see in the testss we expand the format: https://github.com/andrewrk/connect-multiparty/blob/master/test/multipart.js#L71
Hmm, That's interesting. Shall have to do some more digging. Thanks :)
On Wed, 9 Jul, 2014 at 2:06 PM, Douglas Christopher Wilson
notifications@github.com wrote:
This module does construct the first option. You are obviously having
some kind of middleware conflict somewhere, not this module. You can
even see in the testss we expand the format:
https://github.com/andrewrk/connect-multiparty/blob/master/test/multipart.js#L71—
Reply to this email directly or view it on GitHub.