# How to parametrize the file added to the post request

**URL:** <https://community.postman.com/t/how-to-parametrize-the-file-added-to-the-post-request/51033>\
**Category:** Help Hub\
**Tags:** tests, collections\
**Created:** [August 28, 2023, 12:20am UTC](https://community.postman.com/t/how-to-parametrize-the-file-added-to-the-post-request/51033 "2023-08-28T00:20:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shuriksun](https://avatars.discourse-cdn.com/v4/letter/s/57b2e6/32.png) [@shuriksun](https://community.postman.com/u/shuriksun)\
**Post date:** [August 28, 2023, 12:20am UTC](https://community.postman.com/t/how-to-parametrize-the-file-added-to-the-post-request/51033/1 "2023-08-28T00:20:55Z")

</div>

Hi, I need to add different files in each run of the collection.  
It is possible to parametrize the file which will be added to the POST request?  
By default, the file is added in the body folder as a file.  
How I can set a variable which will set the path to the test file?

---

<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:** [November 26, 2023, 12:21am UTC](https://community.postman.com/t/how-to-parametrize-the-file-added-to-the-post-request/51033/2 "2023-11-26T00:21:34Z")

</div>

Closed on November 26, 2023, 12:21am UTC

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