Star

Created With

linkMulti-Part Form Data

To send multi-part form data, use the form_data property. This is also how to send file uploads

⚠️ Note: when using the form_data property with URL encoded data, you MUST ALSO send header content-type: multipart/form-data

1link - name: post multipart form data - single file and field

2link request:

3link path: /register

4link method: post

5link headers:

6link - name: content-type

7link value: multipart/form-data

8link payload:

9link form_data:

10link - name: dob

11link type: text

12link content: '1980-01-04'

13link - name: email

14link type: text

15link content: person@company.com

16link - name: photo-id-file

17link type: file

18link content: static/assets/example-id-card.png

19link response:

20link status_code: 200

See also:

Multi-Part Form Data

Home

Getting Startedchevron_right
Basicschevron_right
Requestchevron_right

Request Basics Headers Cookies Query Parameters Path Parameters

Payload Bodychevron_right

File Uploads Auto-Retry Additional Options

Response Validationchevron_right

Overview

Assertionschevron_right

Status Code Headers & Cookies

Bodychevron_right
Hooks & JSchevron_right

Overview

Function Typeschevron_right
Suite-Level Hookschevron_right
Spec-Level Hookschevron_right
Contextchevron_right
DRY & Reusing Specschevron_right
Command Line Interface (CLI)chevron_right