How to send a multipart/form-data request in Postman (with file upload)
Codemia Knowledge Hub ·
To send multipart/form-data in Postman, set the method to POST, open the Body tab, select form-data, and add your fields. Mark each field as Text or File; File fields get a Select Files button for the upload. Then click Send.
How a multipart/form-data request is structured
Multipart/form-data is the MIME format for form submissions that include files, non-ASCII data or binary content. The data travels as a series of "parts" inside one message. Each part has a Content-Disposition header, plus a filename and Content-Type when the part is a file.
A typical request looks like this:
Postman builds this body and the boundary for you.
Steps in Postman
- Create a request:
- Click 'New' or press
Cmd + N/Ctrl + N. - Choose 'Request', fill in the request name and method (POST), and press 'Save'.
- Enter the request URL of the API endpoint.
- Set the method to 'POST' in the drop-down next to the URL field.
- Choose form-data:
- Open the 'Body' tab under the URL field.
- Select 'form-data' from the options (
none,form-data,x-www-form-urlencoded, etc.).
- Enter the form fields:
- For a text part, enter the key, select 'Text' in the right column, and enter the value.
- For a file, enter the key, choose 'File' in the right column, and use the 'Select Files' button to pick a file.
- Send the request with the 'Send' button.
Example setup:
| Key | Value Type | Value/File |
| username | Text | john.doe |
| profile_image | File | (choose a file) |
Reading the response
Postman shows the response in the lower panel: status code, response time and body. The body format (JSON, XML and so on) depends on the API.
Debugging a failed upload
- Check the headers: Content-Type should be 'multipart/form-data' with a boundary defined.
- Check the API documentation: confirm the expected parameter names and file types.
- Inspect the request body: open the Postman Console (View > Show Postman Console) to see the outgoing request and confirm the data is structured correctly.
Related reading
- How to set a timeout with AFNetworking
- How to set base url for rest in spring boot?
- How to set connection timeout with OkHttp
- How to set HTTP status code from ASP.NET MVC 3?
- How to set up a method twice for different parameters with Moq
- How to setup a BeginXXX EndXXX method call with moq?
- How to set HttpResponse timeout for Android in Java
- How to set multiple headers at once in Spring WebClient?
System design interview problems on this topic
- Design a Load Balancer: solution and walkthrough
- Design a Domain Name System: solution and walkthrough
- Design a Global Content Distribution Network: solution and walkthrough
- Design an API Rate Limiter: solution and walkthrough

System Design Fundamentals
Build a strong foundation in designing scalable, reliable distributed systems.
View the courseSystem Design practice on Codemia
Work through 120+ system design problems with detailed solutions, from rate limiters to multi-region storage.