# Sending file from previous response in multi-part POST

**URL:** <https://community.postman.com/t/sending-file-from-previous-response-in-multi-part-post/57695>\
**Category:** Help Hub\
**Tags:** collections\
**Created:** [February 15, 2024, 11:02am UTC](https://community.postman.com/t/sending-file-from-previous-response-in-multi-part-post/57695 "2024-02-15T11:02:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![christianmenne](https://avatars.discourse-cdn.com/v4/letter/c/e5b9ba/32.png) [@christianmenne](https://community.postman.com/u/christianmenne)\
**Post date:** [February 15, 2024, 11:02am UTC](https://community.postman.com/t/sending-file-from-previous-response-in-multi-part-post/57695/1 "2024-02-15T11:02:51Z")

</div>

I have a Postman request that retrieves a PDF. If retrieval is successful, I need to check the PDF’s validity by submitting it to a service using a multipart POST request.

I do manage to retrieve the PDF using Postman.  
I do manage to send a multi-part request with a local file as a part using Postman.  
But I have no idea how to combine both for an automated test - neither could I find out how to make Postman write the result of the first request to a temporary file, nor can I find out how to submit a stream or Base64 string or whatever instead of a file in a multi-part request (assuming the server actually accepts that).

Does anybody have an idea?

---

<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:** [March 16, 2024, 11:03am UTC](https://community.postman.com/t/sending-file-from-previous-response-in-multi-part-post/57695/2 "2024-03-16T11:03:14Z")

</div>

Closed on March 16, 2024, 11:03am UTC

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