8000 Dots in field names break the structure for `multipart/form-data` · Issue #63 · adonisjs/bodyparser · GitHub
[go: up one dir, main page]

Skip to content
Dots in field names break the structure for multipart/form-data #63
@irshadahmad21

Description

@irshadahmad21

Package version

v10.0.1

Describe the bug

For 'application/x-www-form-urlencoded', we have an option to pass queryString: { allowDots: false } but there is no such option for 'multipart/form-data' and the fields are parsed using dot for nesting.

We have a form that allows users to submit a URL along with other inputs and files. We need to store some meta related to the submitted URL in an input field like this

<input type='hidden' name={`meta[${url}][some_key]`} value={'some value'} />

The URL will obviously contain dots.

Reproduction repo

No response

Metadata

Metadata

Assignees

Labels

Good First IssueWant to contribute? Just filter by this labelSemver: PatchA bug fixStatus: On HoldThe work was started earlier, but is on hold now. Check comments for reasoningType: EnhancementImproving an existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0