koajs / joi-router

Configurable, input and output validated routing for koa
MIT License
450 stars 96 forks source link

Awaiting multipart "parts" hangs when a file field is followed by text fields #67

Closed kylehendricks closed 6 years ago

kylehendricks commented 6 years ago

If I get a multipart request that has a file field first with a subsequent text field, the second await call will hang indefinitely.

If I have a text field first, the first await will have the file stream and the second await will still hang but the ctx.request.parts.field array will be populated properly with the text fields.

kylehendricks commented 6 years ago

Sorry, duplicate of https://github.com/koajs/joi-router/issues/44