# How to download a file using dashboard button

**URL:** <https://discourse.nodered.org/t/how-to-download-a-file-using-dashboard-button/84560>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [15 January 2024 14:21 UTC](https://discourse.nodered.org/t/how-to-download-a-file-using-dashboard-button/84560 "2024-01-15T14:21:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Engineer\_M](https://avatars.discourse-cdn.com/v4/letter/e/aeb1de/32.png) [@Engineer\_M](https://discourse.nodered.org/u/Engineer_M)\
**Post date:** [15 January 2024 14:21 UTC](https://discourse.nodered.org/t/how-to-download-a-file-using-dashboard-button/84560/1 "2024-01-15T14:21:33Z")

</div>

Hi everyone, i need to download the csv file from another pc via dashboard button, the file is stored on the server running with a local ip address of [http://192.168.11.28:9080](http://192.168.11.28:9080) and public ip address of [http://196.49.60.266:9080](http://196.49.60.266:9080) but i don't know how do i solve it. please any one help me. the path of the file on the server that node red run is C:\Users\Administrator.data and the name of the file is data.csv

---

<div class="post-metadata">

**Author:** ![manglemender](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@manglemender](https://discourse.nodered.org/u/manglemender)\
**Post date:** [15 January 2024 15:00 UTC](https://discourse.nodered.org/t/how-to-download-a-file-using-dashboard-button/84560/2 "2024-01-15T15:00:25Z")

</div>

Two potential solutions spring to mind and neither require any port forwarding or use of a Public IP address. 1) email the file using the email node. 2) send via an MQTT server.

Email: I setup a gmail account specifically to do this. At the recieving end, email is checked for every 5 minutes and when a new mail is received, a flow is triggered that handles what was sent. At the sending end, Data is being logged periodicvally to a .csv file and every time the batch number changes, a new file is started and the previous batch of data is emailed.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/3/93d4dd86a66f419a26b9c49facde432774f73dac.png)

MQTT: An MQTT service is avaialble to sending and recieving ends of teh process, At the sending end, I file is monitored for changes and when a change is detected, a copy of the file is send as an MQTT message. The receiving end subscribes to the approporiate topic where the the file is then received as a backup copy. The file in node passes on a buffer object

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/7/a74d2199e0f390c67889a4c458fa55b22f9e9039.png)

Nick

---

<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:** [14 February 2024 15:01 UTC](https://discourse.nodered.org/t/how-to-download-a-file-using-dashboard-button/84560/3 "2024-02-14T15:01:04Z")

</div>

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