Home / Companies / Postman / Blog / Post Details
Content Deep Dive

Run collections with file uploads using Newman

Blog post from Postman

Post Details
Company
Date Published
Author
Abhijit Kane
Word Count
189
Company Posts That Month
6
Language
English
Hacker News Points
-
Post removed?
No
Summary

Using Postman's collection runner to execute collections with file uploads is not directly supported, but a workaround exists using Newman, Postman's command-line tool. Users can first create and successfully test a collection with a POST request in the main Postman window, which includes both file and text parameters. After exporting the collection as a JSON file, one must edit the JSON file to specify the full path of the file in the request body form data section. Running the modified JSON file with Newman allows for the execution of file-post requests, and users on Windows need to ensure the file path in the JSON uses double-backslashes to maintain JSON validity. This method provides a feasible solution for those needing to run collections with file uploads outside the Postman application.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.