Node-Red on home assistant – does not want to write to sd disk with

Hi.
I have installed home assistant on raspberry pi and I am trying node-red.
OS Version: Home Assistant OS 14.2
Home Assistant Core: 2025.1.4

Node write file does not have access to write to sd card where system is.
I have tried /dev/shm/ testfile.txt, /config/testfile.txt
How to solve this problem?
Thank you.

By default /config/www/ is the only folder that you can save files to. However www has no auth protection and is exposed to the internet. Setting up your media folder is advised. That location when exposed can be used to store files and is protected by home assistant. Then you would use the path /media/testfile.txt.

https://www.youtube.com/watch?v=TAkU-Q6YAsk