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 headercontent-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: