# How to upload a file when collection run from newman

**URL:** <https://community.postman.com/t/how-to-upload-a-file-when-collection-run-from-newman/12074>\
**Category:** Help Hub\
**Created:** [April 20, 2020, 1:23pm UTC](https://community.postman.com/t/how-to-upload-a-file-when-collection-run-from-newman/12074 "2020-04-20T13:23:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![veerendra.peda](https://avatars.discourse-cdn.com/v4/letter/v/ed8c4c/32.png) [@veerendra.peda](https://community.postman.com/u/veerendra.peda)\
**Post date:** [April 20, 2020, 1:23pm UTC](https://community.postman.com/t/how-to-upload-a-file-when-collection-run-from-newman/12074/1 "2020-04-20T13:23:08Z")

</div>

Hi All,

Scenario: I have a resume parser API and method is POST. I can able to upload a resume when I test it from the postman and selecting key-value type as “file”. Please find the below screenshot.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/8/a/8a422d08da637d446ca1c8a54fdc936df6bc5b04.png)

Now, I want to run the collection from Newman. How I can upload or file a source?

Is there a way to send the different files when I want to run as iteration from Newman?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 12, 2024, 12:59pm UTC](https://community.postman.com/t/how-to-upload-a-file-when-collection-run-from-newman/12074/2 "2024-12-12T12:59:15Z")

</div>

Closed on December 12, 2024, 12:59pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
