# Saving file returned by http request to local

**URL:** <https://discourse.nodered.org/t/saving-file-returned-by-http-request-to-local/61482>\
**Category:** General\
**Created:** [19 April 2022 09:34 UTC](https://discourse.nodered.org/t/saving-file-returned-by-http-request-to-local/61482 "2022-04-19T09:34:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kapil775](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@Kapil775](https://discourse.nodered.org/u/Kapil775)\
**Post date:** [19 April 2022 09:34 UTC](https://discourse.nodered.org/t/saving-file-returned-by-http-request-to-local/61482/1 "2022-04-19T09:34:04Z")

</div>

Hi All,

I am making HTTP request on below link using HTTP Request node. This HTTP request returns a file and I want to save this file to my local drive. Can anyone please advise how can I do the same.

[http://speedtest.ftp.otenet.gr/files/test1Mb.db](http://speedtest.ftp.otenet.gr/files/test1Mb.db)

Thank!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [19 April 2022 09:39 UTC](https://discourse.nodered.org/t/saving-file-returned-by-http-request-to-local/61482/2 "2022-04-19T09:39:01Z")

</div>

Send the payload/file to a file node.

---

<div class="post-metadata">

**Author:** ![Kapil775](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@Kapil775](https://discourse.nodered.org/u/Kapil775)\
**Post date:** [19 April 2022 09:53 UTC](https://discourse.nodered.org/t/saving-file-returned-by-http-request-to-local/61482/3 "2022-04-19T09:53:02Z")

</div>

Hi @Steve-Mcl , thanks for your response! However I am unable to find file node in nodered. I can see below nodes on typing "file" in search.

1. download
2. upload
3. write file
4. read file

Thanks!

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [19 April 2022 09:55 UTC](https://discourse.nodered.org/t/saving-file-returned-by-http-request-to-local/61482/4 "2022-04-19T09:55:10Z")

</div>

You need to search the node menu, top left:  
 ![Screenshot-12](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/3/e33ae873809be2e87e95e9c99c530d526ef57786.png)

---

<div class="post-metadata">

**Author:** ![Kapil775](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@Kapil775](https://discourse.nodered.org/u/Kapil775)\
**Post date:** [19 April 2022 10:07 UTC](https://discourse.nodered.org/t/saving-file-returned-by-http-request-to-local/61482/5 "2022-04-19T10:07:37Z")

</div>

Hi @ghayne ,

I searched in the node menu, however I can see below nodes only. As per @Steve-Mcl 's response, I have to use 'file' node for saving file returned by http request. Could you please help me finding 'file' node.

 ![file](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/4/94237ef8be59a63ef9c346165e1fcd917f777dec.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [19 April 2022 10:12 UTC](https://discourse.nodered.org/t/saving-file-returned-by-http-request-to-local/61482/6 "2022-04-19T10:12:41Z")

</div>

Write file is the node you need.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [19 April 2022 10:24 UTC](https://discourse.nodered.org/t/saving-file-returned-by-http-request-to-local/61482/7 "2022-04-19T10:24:07Z")

</div>

Just to note that the write file node writes to the Node-RED _SERVER's_ filing system. Don't confuse that with your laptop's filing system which will be different unless you are running Node-RED on your laptop.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 June 2022 10:24 UTC](https://discourse.nodered.org/t/saving-file-returned-by-http-request-to-local/61482/8 "2022-06-18T10:24:10Z")

</div>

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