---
title: parseMultipart
source: https://github.com/remix-run/remix/blob/remix@3.0.0-beta.3/packages/multipart-parser/src/lib/multipart.ts#L130
---

# parseMultipart

## Summary

Parse a `multipart/*` message from a buffer/iterable and yield each part as a
[`MultipartPart`](/api/remix/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`](/api/remix/multipart-parser/class/MultipartPart/) objects