# Safe the pdf on a USB stick

**URL:** <https://discourse.nodered.org/t/safe-the-pdf-on-a-usb-stick/66186>\
**Category:** General\
**Created:** [8 August 2022 17:17 UTC](https://discourse.nodered.org/t/safe-the-pdf-on-a-usb-stick/66186 "2022-08-08T17:17:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mauri](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@Mauri](https://discourse.nodered.org/u/Mauri)\
**Post date:** [8 August 2022 17:17 UTC](https://discourse.nodered.org/t/safe-the-pdf-on-a-usb-stick/66186/1 "2022-08-08T17:17:45Z")

</div>

Hello Community  
I can generate a pdf with node red. Now my question: can I save it to a USB stick with a node, or possibly via com port?

My node red is installed on a Linux computer. I wanna save the pdf files in a usb stick, how can I solve this?

I hope you can understand.

---

<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:** [8 August 2022 19:56 UTC](https://discourse.nodered.org/t/safe-the-pdf-on-a-usb-stick/66186/2 "2022-08-08T19:56:23Z")

</div>

> [@Mauri](#):
>
> can I save it to a USB stick

Sure, use a `write file` node.

---

<div class="post-metadata">

**Author:** ![Mauri](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@Mauri](https://discourse.nodered.org/u/Mauri)\
**Post date:** [10 August 2022 05:49 UTC](https://discourse.nodered.org/t/safe-the-pdf-on-a-usb-stick/66186/3 "2022-08-10T05:49:47Z")

</div>

OK, maybe maybe I didn't express myself correctly =)  
I would like to select a storage medium via the dashboard. So that you can save the created pdf in the desired location.

I would actually like to be able to guarantee that the path is correct when I exchange the storage medium.

---

<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:** [10 August 2022 05:58 UTC](https://discourse.nodered.org/t/safe-the-pdf-on-a-usb-stick/66186/4 "2022-08-10T05:58:30Z")

</div>

> [@Mauri](#):
>
> I would like to select a storage medium via the dashboard. So that you can save the created pdf in the desired location

the node-red-contrib-fs-ops node can probably be used here to `dir` list and there is another fs-ops node that can check access etc. After that you will need to build/populate dashboard elements that present the options.

PS, is node-red installed in the same place you insert the USB? Or a different computer?

---

<div class="post-metadata">

**Author:** ![Mauri](https://avatars.discourse-cdn.com/v4/letter/m/c67d28/32.png) [@Mauri](https://discourse.nodered.org/u/Mauri)\
**Post date:** [10 August 2022 06:29 UTC](https://discourse.nodered.org/t/safe-the-pdf-on-a-usb-stick/66186/5 "2022-08-10T06:29:26Z")

</div>

> PS, is node-red installed in the same place you insert the USB? Or a different computer?

Yes, this is true. The node-red is at the same Linuxpanel installed where the USB will insert.  
Ok. Thanks, I will try it.

---

<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:** [10 August 2022 08:26 UTC](https://discourse.nodered.org/t/safe-the-pdf-on-a-usb-stick/66186/6 "2022-08-10T08:26:11Z")

</div>

This flow might be of some use or give you some clues: [File Browser in Dashboard (flow) - Node-RED](https://flows.nodered.org/flow/44bc7ad491aacb4253dd8a5f757b5407)

---

<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:** [9 October 2022 08:26 UTC](https://discourse.nodered.org/t/safe-the-pdf-on-a-usb-stick/66186/7 "2022-10-09T08:26:16Z")

</div>

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