Cant parse array data properly (send via `FromData`)
creeperyang opened this issue · comments
Creeper commented
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.
Charlike Mike Reagent commented