Star

Created With

linkFile Uploads

File uploads are supported using the form_data property.

⚠️ 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 & two text fields

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

⚠️ Note: the file path should be relative to Node process's current working directory.

💡 To use a path relative to suite's path use the locate_files_relative option in the suite meta section

See also:



File Uploads

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