Novice user trying to resolve a persistent issue accessing files using “Read/Write Files from Disk” Node. In testing (change my file name) I see that n8n can see the file if its name is correct, but “Access to the file is not allowed.”
Hi @gbossley, /home/node/.n8n/Documents is inside n8n’s protected data directory. Adding it to N8N_RESTRICT_FILE_ACCESS_TO doesn’t override that protection.
Create C:/n8n-files on Windows and copy Testn8n.txt there. In your Compose file, merge these entries into your existing n8n service, keeping its other environment settings and volumes:
Change the node’s File(s) Selector to /files/Testn8n.txt.
Then run docker compose up -d n8n from your Compose folder, replacing n8n if your service has another name. A plain restart won’t apply the changed environment or mount.
Keep the existing /home/node/.n8n volume unchanged. The new read-only mount is just for your test files.