name = Multipart Form Data Examples
description = Demonstrates multipart text fields and file uploads using Postman Echo.

$ BASE = https://postman-echo.com

---

Echo Multipart Text Fields

POST {{ BASE }}/post

~ username = hen
~ mode = multipart
~ note = hello from hen

^ & status == 200
^ & header.content-type ~= /application\/json/
^ & body.headers.content-type ~= /multipart\/form-data/
^ & body.form.username == 'hen'
^ & body.form.mode == 'multipart'
^ & body.form.note == 'hello from hen'

---

Echo Multipart File Upload

POST {{ BASE }}/post

~ description = syntax reference sample
~ attachment = @../syntax-reference.md

^ & status == 200
^ & body.headers.content-type ~= /multipart\/form-data/
^ & body.form.description == 'syntax reference sample'
^ & body.files ~= /syntax-reference\.md/
^ & body.files ~= /data:application\/octet-stream;base64/