Mark GM
Deno2y ago
Mark G

Anyone aware of a streaming multipart parser for Deno?

I'd like to handle the parts of a multipart/form-data stream in a server as they arrive rather than waiting for a complete upload and using FormData.

Ideally this would be a TransformStream that parsed the body into a stream of parts, which in turn contained the appropriate metadata and a content stream for each part.

I've been searching for any kind of implementation like this and not found anything from the wider JS ecosystem, let alone for Deno.

Does anyone else know of something like this, or maybe a nice multipart parser that could be adapted?

I wanted to avoid duplicating effort, but if it's not already been done, I may have a bash at it myself.
Was this page helpful?