Mulen
September 1, 2023, 6:04am
1
Hello.
We have problem with Read Binary Files node.
In version 1.1.1 it was working fine, now with the latest version we try to read a file and it says:
ERROR: Access to the file is not allowed.
I made changes to file also with chmod 777 and still can not read the file.
The path inside the docker container is
/home/node/.n8n/projects/myproject/attachments/test.txt
I connect inside the docker container of n8n and did a cat file.txt and it shows the content.
What is happening?
Are there any new .env variables with the latest versions?
I saw something like this in github
RESTRICT_FILE_ACCESS_TO
BLOCK_FILE_ACCESS_TO_N8N_FILES
can i disable them?
Mulen
September 1, 2023, 6:20am
4
I found this variable and set it to false
N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES: false
Please update your documentation with all available .env variables.
2 Likes
Jon
September 1, 2023, 7:43am
5
Hey @Mulen ,
I thought we had documented that but it looks like we missed it for some reason, We don’t recommend storing data in the /home/node/.n8n
directory as that that should only be used by the n8n application.
A better solution would be to create another volume in your container to work with data or use /tmp/ if it is temporary data.
I will get the documentation updated shortly.
1 Like
system
Closed
September 8, 2023, 7:43am
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.