---
title: "parseMultipart"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/multipart-parser/src/lib/multipart.ts#L131"
---

# parseMultipart

## Summary

Parse a `multipart/*` message from a buffer/iterable and yield each part as a
[`MultipartPart`](/multipart-parser/class/MultipartPart/) object.

Note: This is a low-level API that requires manual handling of the content and boundary.
If you're building a web server, consider using
import('./multipart-request.ts').parseMultipartRequest instead.

## Signature

```ts
function parseMultipart(
  message: Uint8Array<ArrayBufferLike> | Iterable<Uint8Array<ArrayBufferLike>, any, any>,
  options: ParseMultipartOptions,
): Generator<MultipartPart, void, unknown>

```

## Parameters

### `message`

The multipart message as a `Uint8Array` or an iterable of `Uint8Array` chunks

### `options`

Options for the parser

## Returns

A generator that yields [`MultipartPart`](/multipart-parser/class/MultipartPart/) objects