Skip to content

Formidable things that a multipart/form-data request is JSON if the boundary contains the string "json" #1043

@nicolo-ribaudo

Description

@nicolo-ribaudo

Support plan

  • Which support plan is this issue covered by? (Community, Sponsor, Enterprise): Community, I'll submit a PR
  • Currently blocking your project/work? (yes/no): yes
  • Affecting a production system? (yes/no): no

Context

  • Node.js version: latest
  • Release Line of Formidable (Legacy, Current, Next): next
  • Formidable exact version: 3.5.4
  • Environment (node, browser, native, OS): node
  • Used with (popular names of modules):

What are you trying to achieve or the steps to reproduce?

I'm parsing a request that has this content-type:

Content-Type: multipart/form-data; boundary=--uj05Dyqd7Fd5aqAJnK1j9WeJSONmNy5vSGbM1oLf

What was the result you got?

Formidable thinks it's JSON

What result did you expect?

It should be parsed as multipart/form-data

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