An upload endpoint often expects the file under a specific form field name. In Postman on the Linux desktop, a multipart form-data request attaches a local file to that named field.
Postman generates the Content-Type header for multipart/form-data and the boundary that separates the parts of the body. A manually set Content-Type can override the generated header, so let Postman set it for the upload.
The Lightweight API Client keeps request history on your computer. Sending the request copies the file's contents to the endpoint, so use a non-sensitive test file and an endpoint you have permission to test.
Steps to upload a file with multipart form data in Postman:
The request starts as a new, empty HTTP request in the default Lightweight API Client layout. Your test file must be inside Postman's working directory, usually ~/Postman/files/ on Linux. Have the field name your API expects and the HTTPS URL of a test endpoint that accepts POST multipart uploads and reports the received field name, filename and byte count.
Files elsewhere require the separate Read files outside working directory setting. Using the working directory avoids changing that setting.
- Open Postman from the GNOME app grid.
If Postman opens a sign-up window, choose Continue without an account, then Open Lightweight API Client to reach the request in the next step.
- Open the method list labeled GET in the new request.

- Select POST from the method list.

- Click the URL field beside POST.
An empty field shows Enter URL or paste text.
- Enter your test endpoint's HTTPS URL in the URL field beside POST.
The pictured URL,
https://api.example.test/v1/upload, belongs to a private test API. - Open the request's Body tab.

- Select form-data as the body type.

- Click the first empty cell under Key.

- Type the file field name required by your endpoint.
The example endpoint expects
file. - Click the blank area below the grid to leave the Key editor.

- Hover over the named Key to reveal the chevron at its right edge.

- Open the type menu using the chevron beside the field name.

- Select File from the type menu.

- Click Select Files in that row's Value cell.

- Press Ctrl+L in Open Files to open the location field with the current folder selected.

- Type the full path to your test file in the location field, replacing the selected location.
The example uses
~/Postman/files/sample.txt, a 14-byte text file. - Press Enter to select the file at the entered path.

- Click Open to attach the selected file.

- Click Send with your file listed in the checked form-data row.
The response is ready when its status, time and size appear.
- Verify in the response Body that the server reports the field name, filename and byte count you sent.
The example returns 200 OK with
fieldset tofile,filenameset tosample.txtandsizeset to14. A blank filename or a different byte count means the upload check failed.