# Is there possible to get a file from my PC and use in a pm.sendRequest (Pre-request Script)?

**URL:** <https://community.postman.com/t/is-there-possible-to-get-a-file-from-my-pc-and-use-in-a-pm-sendrequest-pre-request-script/10049>\
**Category:** Help Hub\
**Tags:** pre-request-script\
**Created:** [January 13, 2020, 2:09pm UTC](https://community.postman.com/t/is-there-possible-to-get-a-file-from-my-pc-and-use-in-a-pm-sendrequest-pre-request-script/10049 "2020-01-13T14:09:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sandokhan](https://avatars.discourse-cdn.com/v4/letter/s/a4c791/32.png) [@Sandokhan](https://community.postman.com/u/Sandokhan)\
**Post date:** [January 13, 2020, 2:09pm UTC](https://community.postman.com/t/is-there-possible-to-get-a-file-from-my-pc-and-use-in-a-pm-sendrequest-pre-request-script/10049/1 "2020-01-13T14:09:56Z")

</div>

I’d like to use a file from my PC in this script on Pre-Resquest.

```
pm.sendRequest({
url: `pm.collectionVariables.get("baseUrl")/Options/`,
method: 'PUT',

header: {
'content-type': 'application/json'
},
body: {
mode: 'formdata',
formdata: [{
    key: "file",
    value: FileHere
},]
}});

```

However, I don’t know if is possible and if is possible how to do it!

thanks in advance!

🖖

---

<div class="post-metadata">

**Author:** ![postman-kyle](https://avatars.discourse-cdn.com/v4/letter/p/47e85d/32.png) [@postman-kyle](https://community.postman.com/u/postman-kyle)\
**Post date:** [January 16, 2020, 10:24pm UTC](https://community.postman.com/t/is-there-possible-to-get-a-file-from-my-pc-and-use-in-a-pm-sendrequest-pre-request-script/10049/2 "2020-01-16T22:24:56Z")

</div>

> best way to know is to try it.

sorry for the cliche BUT I am going to say no since it is a self-contained sandbox.
