# Upload own files from my own pc with Node Red Dashboard

**URL:** <https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284>\
**Category:** General\
**Created:** [15 October 2020 10:32 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284 "2020-10-15T10:32:04Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![galactus\_silver](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@galactus\_silver](https://discourse.nodered.org/u/galactus_silver)\
**Post date:** [15 October 2020 10:32 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/1 "2020-10-15T10:32:05Z")

</div>

Hey guys,

first my English is not so good. I am sorry if i make worst sentences or questions.

I would be very happy if someone can help me with this problem.

How can I create something on the Node Red Dashboard where files like .fmu or other files will be uploaded on an any folder on my own pc?

Example: I go to the Node Red dashboard click on an any button or an other thing then the file automatically upload on a folder on my own pc.

---

<div class="post-metadata">

**Author:** ![loeten](https://avatars.discourse-cdn.com/v4/letter/l/b38774/32.png) [@loeten](https://discourse.nodered.org/u/loeten)\
**Post date:** [15 October 2020 13:58 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/2 "2020-10-15T13:58:24Z")

</div>

I am a node red beginner, but to trigger a flow you would need some control in the dashboard that starts the flow.

To upload a file somewhere, I would write a (bash..?) script, That I can test without node-red at all and then start it with an exec node.

Where does the file come from (where is it stored) before you want upload it to your PC?

---

<div class="post-metadata">

**Author:** ![galactus\_silver](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@galactus\_silver](https://discourse.nodered.org/u/galactus_silver)\
**Post date:** [16 October 2020 10:52 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/3 "2020-10-16T10:52:17Z")

</div>

Thank you for your answer.

What is a bash script? Is it a package in Node-Red?

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [16 October 2020 11:04 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/4 "2020-10-16T11:04:07Z")

</div>

> **[What is a Bash Script? - Bash Scripting Tutorial](https://www.google.com/url?q=https:%2F%2Fryanstutorials.net%2Fbash-scripting-tutorial%2Fbash-script.php&sa=U&ved=2ahUKEwjn2ZGz-7jsAhVHyaQKHaqgD5kQFjAAegQIARAB&usg=AOvVaw0TAYHEZdVKQQj7_99uhiTp)**

  

> **[Bash Scripting Tutorial for Beginners - LinuxConfig.org](https://linuxconfig.org/bash-scripting-tutorial-for-beginners)**

---

<div class="post-metadata">

**Author:** ![loeten](https://avatars.discourse-cdn.com/v4/letter/l/b38774/32.png) [@loeten](https://discourse.nodered.org/u/loeten)\
**Post date:** [16 October 2020 11:34 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/5 "2020-10-16T11:34:56Z")

</div>

> [@galactus\_silver](#):
>
> Is it a package in Node-Red?

No, it is a way to define and later execute tasks to do (one or more) that may be not directly supported in Node Red. Just google, depending on your OS for "batch", "Powershell", "bash", "Shell script", "bat", ".cmd", ...

If you tell which file you want to upload from where, maybe there is a way also in NodeRed.

---

<div class="post-metadata">

**Author:** ![linhtranvu](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/linhtranvu/32/30053_2.png) [@linhtranvu](https://discourse.nodered.org/u/linhtranvu)\
**Post date:** [17 October 2020 02:36 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/6 "2020-10-17T02:36:48Z")

</div>

Make a google search and found many

> **[node red dashboard upload file - Google Search](https://www.google.com/search?q=node%2Bred%2Bdashboard%2Bupload%2Bfile&rlz=1CDGOYI_enVN804VN804&oq=dashboard%2Bupload%2Bfile%2B&aqs=chrome.2.69i57j0l2j69i60l3.7405j0j7&hl=en-US&sourceid=chrome-mobile&ie=UTF-8)**

You could choose flow or install new node, there s many choices

---

<div class="post-metadata">

**Author:** ![galactus\_silver](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@galactus\_silver](https://discourse.nodered.org/u/galactus_silver)\
**Post date:** [18 October 2020 07:05 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/7 "2020-10-18T07:05:09Z")

</div>

It is a .fmu file. I want that this .fmu file all the time if I want upload in a folder on my own pc if I click on something at the NodeRed Dashboard. So I want to give this command from NodeRed.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [18 October 2020 08:21 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/8 "2020-10-18T08:21:32Z")

</div>

Is the file on the machine running the browser or on the machine running node-red, and where are you trying to send it to?

---

<div class="post-metadata">

**Author:** ![galactus\_silver](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@galactus\_silver](https://discourse.nodered.org/u/galactus_silver)\
**Post date:** [19 October 2020 08:37 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/9 "2020-10-19T08:37:26Z")

</div>

The file is running on the machine not in browser. I should be upload in any folder it doesn't matter in which folder. It isn't a special folder.

For example: I have a file. My partner and I are working on a project and I want to give this file to my project partner and so we want to create something on the NodeRed dashboard where my partner can click on it an the file would upload on his pc.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [19 October 2020 09:49 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/10 "2020-10-19T09:49:14Z")

</div>

So you have a file on the machine running node-red and you want to send that to a PC. When you say your partner will click on it do you mean that he/she is showing the dashboard in a browser and wants the file to be sent to the PC running the browser? If so then what you want to do is to _download_ the file to the PC. It is the same as, for example, going to a website and asking to download a document from the website. Upload is when you send a file from the PC running the browser to the server machine (that is the one running node-red in this case).  
If you go to the node red flows site and search for Download you will find a number of possibilities, including [this one](https://flows.nodered.org/flow/db68bd4934cf46f39e6e453a348bc419) which looks like it does what you want.

**[Edit]** Why don't you just set up file sharing between the two PCs or use something like Dropbox?

---

<div class="post-metadata">

**Author:** ![lizzardguki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lizzardguki/32/103637_2.png) [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Post date:** [19 October 2020 10:15 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/11 "2020-10-19T10:15:16Z")

</div>

I have a solution somewhere for file upload via http request, and i just added an `<a src=requesturl>` in a node-red button name field and it is working fine for me( just needed to click exactly on text) i will send it later when i get home.

---

<div class="post-metadata">

**Author:** ![galactus\_silver](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@galactus\_silver](https://discourse.nodered.org/u/galactus_silver)\
**Post date:** [20 October 2020 07:19 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/12 "2020-10-20T07:19:10Z")

</div>

Yes I have a file on my PC. I am working on it with NodeRed and then I want to send it with NodeRed to my partner to show him directly what I did on the project. We want to upload and show other work without loosing time and with a quickly way to show the other one what I do now.  
Okay I will look for a flow, I hope I will find something.

---

<div class="post-metadata">

**Author:** ![galactus\_silver](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@galactus\_silver](https://discourse.nodered.org/u/galactus_silver)\
**Post date:** [20 October 2020 07:19 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/13 "2020-10-20T07:19:43Z")

</div>

Are you at home now?

---

<div class="post-metadata">

**Author:** ![lizzardguki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lizzardguki/32/103637_2.png) [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Post date:** [20 October 2020 07:33 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/14 "2020-10-20T07:33:35Z")

</div>

Oh sorry mate i completely forgot to send you the flow , as it was an old project...  
Here is the flow i used [https://flows.nodered.org/flow/cbf44e064b9406a1175a7e8d589f66ac](https://flows.nodered.org/flow/cbf44e064b9406a1175a7e8d589f66ac)

---

<div class="post-metadata">

**Author:** ![galactus\_silver](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@galactus\_silver](https://discourse.nodered.org/u/galactus_silver)\
**Post date:** [22 October 2020 14:18 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/15 "2020-10-22T14:18:39Z")

</div>

I try to install the package and built something at the dashboard. Now I can choose a file and can upload it but I don't know where the file goes. Do you have any idea?

---

<div class="post-metadata">

**Author:** ![lizzardguki](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/lizzardguki/32/103637_2.png) [@lizzardguki](https://discourse.nodered.org/u/lizzardguki)\
**Post date:** [22 October 2020 14:30 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/16 "2020-10-22T14:30:36Z")

</div>

The file doesn't go anywhere, it is read as a stream of buffer, that you can then write to new file, store it, convert to readable state( if a text file) or do anything you wish...

---

<div class="post-metadata">

**Author:** ![galactus\_silver](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@galactus\_silver](https://discourse.nodered.org/u/galactus_silver)\
**Post date:** [23 October 2020 16:36 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/17 "2020-10-23T16:36:28Z")

</div>

Do have a option to upload a file that goes anywhere?

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [23 October 2020 16:49 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/18 "2020-10-23T16:49:19Z")

</div>

By definition, 'upload' means to send the file from the PC to the server (as I explained a few posts ago). Do you mean you want to send a file from the node-red server to a completely different PC or to the PC running the dashboard?

---

<div class="post-metadata">

**Author:** ![galactus\_silver](https://avatars.discourse-cdn.com/v4/letter/g/d07c76/32.png) [@galactus\_silver](https://discourse.nodered.org/u/galactus_silver)\
**Post date:** [26 October 2020 08:59 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/19 "2020-10-26T08:59:18Z")

</div>

yes I want to send a file to a completely different PC which is running the NodeRed dashboard or is working with NodeRed

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [26 October 2020 09:40 UTC](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284/20 "2020-10-26T09:40:58Z")

</div>

Sorry, it still is not entirely clear. How many machines are involved in this? I know there are at least two PCs, call them PC A and PC B. There is a file on PC A that you want to send to PC B.

Questions:

1. Are both A and B running the node red dashboard in a browser?
2. Which dashboard do you want to initiate the transfer from, A or B?
3. Where is the node-red server running? Is that on PC A, B or on an another machine?

We have got to 19 posts in this thread and you still have not told us the basic details of what you are trying to do.

[Next page](https://discourse.nodered.org/t/upload-own-files-from-my-own-pc-with-node-red-dashboard/34284.md?page=2)
