How to open files in locally hosted n8n

When I try to open file locally through my mounted directory (D:/n8n-data —> /home/node/.n8n), n8n cannot retrieve anything from this file, because error is “Access to the file is not alowed”. In my case it is news_output_pap.xlsx. What can I do about that?

Information on your n8n setup

  • n8n version: 1.94.1
  • Database (default: SQLite)
  • n8n EXECUTIONS_PROCESS setting (default: own, main)
  • Running n8n via Docker
  • Operating system: Windows

I think I had to map a directory between the container and my local environment, like

  - ./shared:/data/shared

Then I could put files there and access them from the read from disk node. Have you done that?

Otherwise, I’ve done it where I’ve used a Chat node with Attachments turned on and uploaded from my local environment that way, then pinned the uploaded files and used them further in my work. The form node does the same.

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