formidable icon indicating copy to clipboard operation
formidable copied to clipboard

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

Open nicolo-ribaudo opened this issue 4 months ago • 1 comments

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

nicolo-ribaudo avatar Sep 01 '25 10:09 nicolo-ribaudo

@nicolo-ribaudo haha, good catch. yeah, we should check just anything up to the ;

tunnckoCore avatar Sep 22 '25 14:09 tunnckoCore