# Determine collection path to the runtime

**URL:** <https://community.postman.com/t/determine-collection-path-to-the-runtime/20830>\
**Category:** Help Hub\
**Created:** [February 26, 2021, 8:54am UTC](https://community.postman.com/t/determine-collection-path-to-the-runtime/20830 "2021-02-26T08:54:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhallbau](https://avatars.discourse-cdn.com/v4/letter/r/df788c/32.png) [@rhallbau](https://community.postman.com/u/rhallbau)\
**Post date:** [February 26, 2021, 8:54am UTC](https://community.postman.com/t/determine-collection-path-to-the-runtime/20830/1 "2021-02-26T08:54:00Z")

</div>

Hi,

my JSON collections are checked into a folder structure on Git so that the tests can run automatically on Jenkins. The folder structure is different from my local folder structure.

I would like to upload a file in a POST request. In the body (form-data) I specify key ‘file’ as text, because the selection with ‘file’ does nothing for me, as the execution on the Jenkins would not recognise this (in comparison to a local execution)!

I am looking for a way to determine the path to the collection at runtime. My upload file is in the same folder as the collection file.  
I would like to determine the path to the files in the pre-request script and pass it as the path to the upload file in the body (form-data) as a value. So it wouldn’t matter where my files are - the upload file should always be found?

Many thanks and greetings.
