Download a file and attach it to the next request

Hi,

Is there a way to “save” a file (not necessarily on file system, in memory would be fine as well) in order to reuse it in the next requests?

I am looking for something that mimics variables behavior, in request 1 you get a value, you save it, and your 2nd request can have this value in its URL or body through {{ }}.

Is there something similar? In request 1, I download a file, and I request 2 I send that file back to the server?

Thank you

1 Like

Do you get the contains of the file in your console if you run this:

console.log(pm.response.text());