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

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!

:vulcan_salute:

1 Like

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.