# How do you specify a file path when setting up a binary file in the Body of a POST request?

**URL:** <https://community.postman.com/t/how-do-you-specify-a-file-path-when-setting-up-a-binary-file-in-the-body-of-a-post-request/2282>\
**Category:** Help Hub\
**Tags:** newman-project, postman\
**Created:** [August 7, 2018, 8:45pm UTC](https://community.postman.com/t/how-do-you-specify-a-file-path-when-setting-up-a-binary-file-in-the-body-of-a-post-request/2282 "2018-08-07T20:45:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zbaker\_apex](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/zbaker_apex/32/425_2.png) [@zbaker\_apex](https://community.postman.com/u/zbaker_apex)\
**Post date:** [August 7, 2018, 8:45pm UTC](https://community.postman.com/t/how-do-you-specify-a-file-path-when-setting-up-a-binary-file-in-the-body-of-a-post-request/2282/1 "2018-08-07T20:45:54Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

I am currently trying to setup a script in newman to run a POST request with an image attached in the body. I specified the type as Binary, and I was wondering how do I specify the file path for an image file in the body?

---

<div class="post-metadata">

**Author:** ![Chris](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/chris/32/6637_2.png) [@Chris](https://community.postman.com/u/Chris)\
**Post date:** [August 8, 2018, 10:23pm UTC](https://community.postman.com/t/how-do-you-specify-a-file-path-when-setting-up-a-binary-file-in-the-body-of-a-post-request/2282/2 "2018-08-08T22:23:13Z")

</div>

Here you go:

> **[Run collections with file uploads using Newman | Postman Blog](https://blog.postman.com/run-collections-with-file-uploads-using-newman/)**
>
> People have asked how to use the collection runner to run collections which have requests with file uploads. Right now, it’s not possible...
