Skip to content

Array parameter inconsistency with multipart/formdata #119

@thekid

Description

@thekid

✅ Using application/x-www-form-urlencoded with development and standalone servers:

$ curl -v localhost:8080 -d 'p[0][]=a&p[0][]=b'
{"p":[["a","b"]]}

✅ Using multipart/form-data with development server:

$ curl -v localhost:8080 -F 'p[0][]=a' -F 'p[0][]=b'
{"p":[["a","b"]]}

🛑 Using multipart/form-data with standalone server

$ curl -v localhost:8080 -F 'p[0][]=a' -F 'p[0][]=b'
{"p":[["a"],["b"]]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions