# What path i have to insert to local file in payload

**URL:** <https://discourse.nodered.org/t/what-path-i-have-to-insert-to-local-file-in-payload/83609>\
**Category:** Developing Nodes\
**Created:** [11 December 2023 17:19 UTC](https://discourse.nodered.org/t/what-path-i-have-to-insert-to-local-file-in-payload/83609 "2023-12-11T17:19:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris-0086](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@Chris-0086](https://discourse.nodered.org/u/Chris-0086)\
**Post date:** [11 December 2023 17:19 UTC](https://discourse.nodered.org/t/what-path-i-have-to-insert-to-local-file-in-payload/83609/1 "2023-12-11T17:19:53Z")

</div>

Hi there,  
im new with nodered and want to play a notification on sonos speaker with the node node-red-contrib-sonos-plus.

I have a soundfile what is currently stored at my nas server and what is given as payload: x-file-cifs://nasserver/Sonos/gong.mp3

But no i want that the file is stored local at the raspberrypi, at wich is nodered installed. I stored the same file under Home/pi/ .

But now when i put as payload x-file-cifs://raspberrypi/home/pi/gong.mp3 then sonos cant play anything.  
I get the failure:

"group.play.notification:Sonos error on Play UPnPError 701 (Transition not available) :: Details: {"stack":"SonosError: Sonos error on Play UPnPError 701 (Transition not available)\n at AVTransportService.handleErrorResponse (/home/pi/.node-red/node\_modules/@svrooij/sonos/lib/services/base-service.js:243:23)\n at runMicrotasks ()\n at processTicksAndRejections (node:internal/process/task\_queues:96:5)\n at async AVTransportService.handleRequest (/home/pi/.node-red/node\_modules/@svrooij/sonos/lib/services/base-service.js:200:16)\n at async AVTransportService.SoapRequestWithBodyNoResponse (/home/pi/.node-red/node\_modules/@svrooij/sonos/lib/services/base-service.js:134:16)\n at async AVTransportService.Play (/home/pi/.node-red/node\_modules/@svrooij/sonos/lib/services/av-transport.service.js:176:32)\n at async SonosDevice.Play (/home/pi/.node-red/node\_modules/@svrooij/sonos/lib/sonos-device.js:1063:27)\n at async playGroupNotification (/home/pi/.node-red/no..."

Can anyone help me what i have to fix that it will working?

Regards  
Christian

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [11 December 2023 20:43 UTC](https://discourse.nodered.org/t/what-path-i-have-to-insert-to-local-file-in-payload/83609/2 "2023-12-11T20:43:34Z")

</div>

This is the way it's working for me, maybe not the best way, but it works.

In the settings.js file I have enabled and edited:

```auto
 /** When httpAdminRoot is used to move the UI to a different root path, the
     * following property can be used to identify a directory of static content
     * that should be served at http://localhost:1880/.
     */
    httpStatic: '/home/nodered/node-red-static/',

```

Make a dir **node-red-static** in the **/home/nodered** folder  
Then put your mp3 files in **/home/nodered/node-red-static**  
Your mp3 file should now been found at **/gong.mp3**

---

<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 February 2024 20:43 UTC](https://discourse.nodered.org/t/what-path-i-have-to-insert-to-local-file-in-payload/83609/3 "2024-02-09T20:43:42Z")

</div>

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