helapkg / hela

:icecream: Powerful software development experience and management. Enhancing @tc39 JS, @denoland and @nodejs, because we need a bit of magic. :sparkles: You can think of it as Cargo for the JavaScript ecosystem.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cant parse array data properly (send via `FromData`)

creeperyang opened this issue · comments

Data will be like this:

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

...

------WebKitFormBoundaryUzoXapxqkoPvr8T2
Content-Disposition: form-data; name="tags[]"

569899aad67fa76e5ad3d663
------WebKitFormBoundaryUzoXapxqkoPvr8T2
Content-Disposition: form-data; name="tags[]"

569899aad67fa76e5ad3d664

...

And better-body only get one item of tags[], I mean the parsed data will be like this:

fields: {
   'tags[]': '569899aad67fa76e5ad3d664'
}

Maybe the lib(formidable) just overwrite the tags[], and cant handle array notation properly.

Should be resolved. Need more tests #32 - they will be added soon (before v2). More at #34