yada

raymcdermott 2017-10-12T10:06:38.000167Z

hi peeps ... wondering if anyone out there has an example of multipart/form-data handling in Yada?

malcolmsparks 2017-10-12T11:49:35.000327Z

Edge actually has an example for its phonebook PUT updates

raymcdermott 2017-10-12T13:17:46.000090Z

oops - I didn't look there 😕

raymcdermott 2017-10-12T13:17:49.000387Z

thanks

raymcdermott 2017-10-12T14:13:56.000472Z

with my experiments it seems like :body has the processed form-data but the keys are not coerced ... is that right?

raymcdermott 2017-10-12T14:14:15.000113Z

[ makes sense for files of course ]

malcolmsparks 2017-10-12T14:14:21.000394Z

Yep

raymcdermott 2017-10-12T14:15:16.000470Z

are there any helpers / options for this? [ ok if not, just wanted to check ]

malcolmsparks 2017-10-12T14:20:25.000177Z

There is a special map produced in the ctx called :yada.multipart/parts iirc. It has more part metadata. Look out for it.

raymcdermott 2017-10-12T14:22:10.000270Z

ok, thanks ... the bytes for the data in the body seem to include headers which seems a bit weird

raymcdermott 2017-10-12T14:22:17.000383Z

for example

raymcdermott 2017-10-12T14:24:12.000306Z

I'll check the parts map you mentioned...

raymcdermott 2017-10-12T14:33:35.000491Z

seems like :body-offset is my freind

raymcdermott 2017-10-12T14:34:12.000096Z

[ and of course the parts are the same as the body without the keys ]