How to Read/Write local disk?
-
Hi.
In n8n, often one needs to access (read/write) host filesystem (from inside n8n).
The way it's usually implemented, via Docker, is to map a volume on the host system to a directory in the n8n container fs.
Example:
- /app/data/files:/home/cloudron/files
But i can't seem to find a way to implement this mapping.
-
Hi.
In n8n, often one needs to access (read/write) host filesystem (from inside n8n).
The way it's usually implemented, via Docker, is to map a volume on the host system to a directory in the n8n container fs.
Example:
- /app/data/files:/home/cloudron/files
But i can't seem to find a way to implement this mapping.
@shrey said in How to Read/Write local disk?:
Hi.
In n8n, often one needs to access (read/write) host filesystem (from inside n8n).
The way it's usually implemented, via Docker, is to map a volume on the host system to a directory in the n8n container fs.
Example:
- /app/data/files:/home/cloudron/files
But i can't seem to find a way to implement this mapping.
It seems that the entire host fs is available via direct path:
/app/...
-
Hi.
In n8n, often one needs to access (read/write) host filesystem (from inside n8n).
The way it's usually implemented, via Docker, is to map a volume on the host system to a directory in the n8n container fs.
Example:
- /app/data/files:/home/cloudron/files
But i can't seem to find a way to implement this mapping.
-
Hi.
In n8n, often one needs to access (read/write) host filesystem (from inside n8n).
The way it's usually implemented, via Docker, is to map a volume on the host system to a directory in the n8n container fs.
Example:
- /app/data/files:/home/cloudron/files
But i can't seem to find a way to implement this mapping.
@shrey said in How to Read/Write local disk?:
Hi.
In n8n, often one needs to access (read/write) host filesystem (from inside n8n).
The way it's usually implemented, via Docker, is to map a volume on the host system to a directory in the n8n container fs.
Example:
- /app/data/files:/home/cloudron/files
But i can't seem to find a way to implement this mapping.
It seems that the entire host fs is available via direct path:
/app/...
-
@shrey You can access that filesystem in my.domain.com (your cloudron instance) and select the settings for the app in there and select the file manager or terminal.
-
-
Hi @murgero .
Sorry, the query is specifically for accessing files from within
n8n
(Have updated my OP).Nevertheless, found out how to go about it.
@shrey Could you post the solution? I'm also stuck with it
Tried various things but none worked, and error messages are completely useless, logs, too.
-
Figured it out.
Note: I manually created a
n8n-uploads
folder in my case.In n8n, using the "Read/Write Files from Disk" action:
File Path and Name
:/app/data/n8n-uploads/file.jpeg
/app/data/file.jpeg
works out of the box, but I wanted to store all my files in the same folder.Here is a video:
https://www.loom.com/share/5e6bccdbd19842a489cc10f90ea871d4 -
Figured it out.
Note: I manually created a
n8n-uploads
folder in my case.In n8n, using the "Read/Write Files from Disk" action:
File Path and Name
:/app/data/n8n-uploads/file.jpeg
/app/data/file.jpeg
works out of the box, but I wanted to store all my files in the same folder.Here is a video:
https://www.loom.com/share/5e6bccdbd19842a489cc10f90ea871d4@AmbroiseUnly
Great, this helps me finally