# Export flows into library creates file with out base name

**URL:** <https://discourse.nodered.org/t/export-flows-into-library-creates-file-with-out-base-name/5302>\
**Category:** General\
**Created:** [29 November 2018 14:46 UTC](https://discourse.nodered.org/t/export-flows-into-library-creates-file-with-out-base-name/5302 "2018-11-29T14:46:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![arunnattarayan](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@arunnattarayan](https://discourse.nodered.org/u/arunnattarayan)\
**Post date:** [29 November 2018 14:46 UTC](https://discourse.nodered.org/t/export-flows-into-library-creates-file-with-out-base-name/5302/1 "2018-11-29T14:46:29Z")

</div>

### Way to reproduce:-

When we export a flow into the library and give file name with a trailing slash. That time Node-Red creates .json file with out base name.

### Impact

We can't see the exported flow in import library option

### solution

We can validate the filename in the export library modal itself if it's not valid then we notify the user to give correct name.

shall I create a pull request for this.

- Node-RED version: 0.19.5

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [29 November 2018 15:53 UTC](https://discourse.nodered.org/t/export-flows-into-library-creates-file-with-out-base-name/5302/2 "2018-11-29T15:53:51Z")

</div>

Hi - this has already been raised here - [https://github.com/node-red/node-red/issues/1985](https://github.com/node-red/node-red/issues/1985) - and I see you've commented there. Any discussion should happen on the issue.

---

<div class="post-metadata">

**Author:** ![arunnattarayan](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@arunnattarayan](https://discourse.nodered.org/u/arunnattarayan)\
**Post date:** [30 November 2018 09:44 UTC](https://discourse.nodered.org/t/export-flows-into-library-creates-file-with-out-base-name/5302/3 "2018-11-30T09:44:02Z")

</div>

Thanks for the reply **knolleary**.

I got your point, I have fixed the issue and don't know how I can rise pull request can you please give me the guideline for that.

In [contributing doc](https://github.com/node-red/node-red/blob/master/CONTRIBUTING.md#pull-requests), they said the PR will get rejected if the issue was not discussed in the forum.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [30 November 2018 12:48 UTC](https://discourse.nodered.org/t/export-flows-into-library-creates-file-with-out-base-name/5302/4 "2018-11-30T12:48:55Z")

</div>

That is more for new features etc. Where there is already an issue on the tracker to host the discussion, that is a better venue.

There are lots of guides on [github.com](http://github.com) for raising PRs. You'd be best served reading their help rather than have me or anyone here type it all out.
