# Workflow File in node RED

**URL:** <https://discourse.nodered.org/t/workflow-file-in-node-red/21583>\
**Category:** General\
**Created:** [12 February 2020 08:01 UTC](https://discourse.nodered.org/t/workflow-file-in-node-red/21583 "2020-02-12T08:01:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![issa2020](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/issa2020/32/17008_2.png) [@issa2020](https://discourse.nodered.org/u/issa2020)\
**Post date:** [12 February 2020 08:01 UTC](https://discourse.nodered.org/t/workflow-file-in-node-red/21583/1 "2020-02-12T08:01:54Z")

</div>

Hello,

i m looking for a program to create workflow, what i need :

i need scan directory, if a files is putting on this directory, mail is send to user to get is validation of the files, when the user valide the files, the files is moving in other directory, and i he refused the files is move on failed directory,

do u think we can do that with node-red

thanks

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [12 February 2020 11:49 UTC](https://discourse.nodered.org/t/workflow-file-in-node-red/21583/2 "2020-02-12T11:49:50Z")

</div>

> [@issa2020](#):
>
> i need scan directory, if a files is putting on this directory,

the `watch` node

> [@issa2020](#):
>
> mail is send to user to get is validation of the files

`email` node

> [@issa2020](#):
>
> when the user valide the files,

How do you envision the the user validates or refuses the file?

> [@issa2020](#):
>
> the files is moving in other directory, and i he refused the files is move on failed directory,

you can use node-red-contrib-fs-ops

---

<div class="post-metadata">

**Author:** ![issa2020](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/issa2020/32/17008_2.png) [@issa2020](https://discourse.nodered.org/u/issa2020)\
**Post date:** [12 February 2020 12:58 UTC](https://discourse.nodered.org/t/workflow-file-in-node-red/21583/3 "2020-02-12T12:58:26Z")

</div>

> [@zenofmud](#):
>
> send to user to get is validation o

this is the question for me ?

a web interface ?

but maybe by email ?

can the mail is send with a link t the document, and a button valide or refused.  
and we need to save this response to get the historique

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [12 February 2020 13:12 UTC](https://discourse.nodered.org/t/workflow-file-in-node-red/21583/4 "2020-02-12T13:12:43Z")

</div>

> [@issa2020](#):
>
> this is the question for me ?

Well I can't answer it. You stated `'mail is sent to user to get is validation'` I'm just replying to what you defined as your workflow.

This is where you need to start trying somethings (and it is the best way to learn)

If you want an email to have a link to the file, you will need to think about security. Where will NR be running, If the user that needs to validate the file is traveling will you allow them to securily access your internal network (assuming that NR is running on a local lan) to look at the file and prevent 'bad guys' from accessing.

These are somethings `you`need to decide on and investigate before you start coding.

p.s. if you search the forum for 'security' you will find this has come up a lot.

---

<div class="post-metadata">

**Author:** ![issa2020](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/issa2020/32/17008_2.png) [@issa2020](https://discourse.nodered.org/u/issa2020)\
**Post date:** [12 February 2020 14:37 UTC](https://discourse.nodered.org/t/workflow-file-in-node-red/21583/5 "2020-02-12T14:37:55Z")

</div>

thanks for u response, node red is not what i search for.

thanks

---

<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:** [12 April 2020 14:37 UTC](https://discourse.nodered.org/t/workflow-file-in-node-red/21583/6 "2020-04-12T14:37:57Z")

</div>

Closed on 12 April 2020 14:37 UTC

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