Action node can't write to file

I’m running HA 2025.2.2 with the latest Node-Red.
I have a flow that saves camera snapshots, these will be used with Gemeni AI, so they have to be in the www folder.

Following several topics I use ‘camera.snapshot’ to save the file :

{"filename":"/homeassistant/www/snapshot/front_door1.jpg"}

But then I’m still getting this error :

"HomeAssistantError: Cannot write /homeassistant/www/snapshot/front_door1.jpg, no access to path; allowlist_external_dirsmay need to be adjusted inconfiguration.yaml"

In my configuration.yaml I already have :

homeassistant:
   allowlist_external_dirs:
    - /homeassistant

What am I doing wrong ?

If you are using home assistant OS the path is /config/www/snap...

Also tried that :

"HomeAssistantError: Cannot read `./local/www/snapshot/front_door1.jpg`, no access to path; `allowlist_external_dirs` may need to be adjusted in `configuration.yaml`"

To read the file use "/local/snapshot..."

Thanks, probably something else wrong. it looks like it’s saved :
image
But when I look in this folder, it’s empty. And then the read of that file also fails, because it’s not there.

Can you try these actions in home assistant to see where the problem is? In devtools → actions tab, you can run an action without needing to create a script/automation.