# "http in" and "file out" nodes in a subflow

**URL:** https://discourse.nodered.org/t/http-in-and-file-out-nodes-in-a-subflow/51784
**Category:** General
**Created:** [2 October 2021 23:36 UTC](https://discourse.nodered.org/t/http-in-and-file-out-nodes-in-a-subflow/51784 "2021-10-02T23:36:41Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mdkrieg](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mdkrieg/32/39091_2.png) [@mdkrieg](https://discourse.nodered.org/u/mdkrieg)
#### Post date: [2 October 2021 23:36 UTC](https://discourse.nodered.org/t/http-in-and-file-out-nodes-in-a-subflow/51784/1 "2021-10-02T23:36:41Z")

</div>

Hello,

I've been working today on integrating the [w2ui grid library](http://w2ui.com/web/demos/#/grid/1) to Node-RED. I almost created a custom node for it but decided to go the subflow route.

Link to Gist on GitHub:

> <https://gist.github.com/mdkrieg/ee48dcc5c1b393af9135cf031d767394>

Overall, it was moderately painless, but there were a few snags that I hit:

1. HTTP in - I couldn't use env variables in the path. Is it possible to use anything dynamic?

2. HTTP in - In working around the first point, I had the HTTP in _inside_ the subflow and was comparing a "param" property to the desired env variable. This worked as long as I only had 1 subflow instance. Seems that regardless of subflows, "HTTP in"s with duplicate path names don't all listen to the path, only one of them will listen. Is there any other workaround for this?

3. File out - I swear I had this working at one point via the node _in_ the subflow but now I can't get it to work, the only way is to pass it to a second output and a "file out" _outside_ the subflow works perfectly even though the data should be the same. What could be happening here?

(ps - is there no forum tag for subflows?)

Any help would be appreciated, thanks!  
-Matt

---

<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: [1 December 2021 23:36 UTC](https://discourse.nodered.org/t/http-in-and-file-out-nodes-in-a-subflow/51784/2 "2021-12-01T23:36:58Z")

</div>

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