# Correct Filename to load from remote share drive

**URL:** <https://discourse.nodered.org/t/correct-filename-to-load-from-remote-share-drive/4047>\
**Category:** General\
**Created:** [17 October 2018 05:36 UTC](https://discourse.nodered.org/t/correct-filename-to-load-from-remote-share-drive/4047 "2018-10-17T05:36:31Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [17 October 2018 05:36 UTC](https://discourse.nodered.org/t/correct-filename-to-load-from-remote-share-drive/4047/1 "2018-10-17T05:36:31Z")

</div>

Hi ,

I'm using motionEye to capture motion events and to store the evidence as jpg and mp4. I'm able to transfer the filename (\\192.168.1.173/share/camera1/LastMotion.mp4) to Node-Red. This filename works when used in any desktop app or browser to open the file.

Unfortunately, the node red file load says that the file does not exist. It only works for local files (/home/pi/shares/video.mp4).

Can anybody help? .. I do need to load the remote file into a node red buffer object.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/f/fd60eb8b05fcfd5b2c5c9646a6c4a1f3bd1a4700.png)

thx for your help and ideas

---

<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:** [17 October 2018 06:22 UTC](https://discourse.nodered.org/t/correct-filename-to-load-from-remote-share-drive/4047/2 "2018-10-17T06:22:40Z")

</div>

What exactly do you put in the browser URL? I do not think it is what you posted.  
Also is that running the browser on the pi?

---

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [17 October 2018 06:39 UTC](https://discourse.nodered.org/t/correct-filename-to-load-from-remote-share-drive/4047/3 "2018-10-17T06:39:02Z")

</div>

sorry, the double "]" was not showing otherwise the filename as shown above is correct

- The file share \\192.168.1.173/share/camera1/ is on a raspberry 3 running motionEye
- Node-Red is running on another RPI (192.168.1.200)
- the browser URL I have successfully tested on my WIN Chrome browser (same subnet as RPI)

---

<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:** [17 October 2018 08:15 UTC](https://discourse.nodered.org/t/correct-filename-to-load-from-remote-share-drive/4047/4 "2018-10-17T08:15:51Z")

</div>

In the browser is it [http://192](http://192)...etc?  
If so then it isn't a share and you will have to use an http node to fetch it. However if you have shared the folder using samba then you you should be able to mount the share as a folder on the node red pi and access it as a file. That is the way I would do it.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [17 October 2018 16:28 UTC](https://discourse.nodered.org/t/correct-filename-to-load-from-remote-share-drive/4047/5 "2018-10-17T16:28:17Z")

</div>

> [@xx\_Nexus\_xx](#):
>
> \192.168.1.173/share/camera1/

Is a network share using SMB (Server Message Block - a Microsoft standard). To access that, you need SAMBA installed and configured. However, I've not tried the file node with a network file share - I think it should work.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [17 October 2018 20:49 UTC](https://discourse.nodered.org/t/correct-filename-to-load-from-remote-share-drive/4047/6 "2018-10-17T20:49:36Z")

</div>

If this is really a network share then you may need you use \ to escape the \ characters - so \192. will become \\192.

If it's actually a url (you mention in bullet 3) then you may need an http request node instead of a file node.

---

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [17 October 2018 22:46 UTC](https://discourse.nodered.org/t/correct-filename-to-load-from-remote-share-drive/4047/7 "2018-10-17T22:46:16Z")

</div>

yes, the motionEye RPi is running Samba and sharing the according images. Unfortunately the file node is not able to access this file share.

I will try to mount the samba share onto NR.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [17 October 2018 23:52 UTC](https://discourse.nodered.org/t/correct-filename-to-load-from-remote-share-drive/4047/8 "2018-10-17T23:52:40Z")

</div>

> [@xx\_Nexus\_xx](#):
>
> mount the samba share onto NR

You will doubtless want to mount the share into your Pi's filing system. Then NR should have no issues.

---

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [18 October 2018 22:53 UTC](https://discourse.nodered.org/t/correct-filename-to-load-from-remote-share-drive/4047/9 "2018-10-18T22:53:51Z")

</div>

Yes, mounting the remote share to the Node-Red RPi has done the trick and I'm able to load the content.

thx a lot everyone
