Save a file locally within n8n container

Describe the problem/error/question

I want to upload files locally to test a audio conversion feature. For that, I created a volume media on the folder /home/node/. However, I fail to reference correctly the file for file write. Could you help me uploading the file to the local container? Thanks!

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.88
  • Database: Postgres
  • n8n EXECUTIONS_PROCESS setting: own
  • Running n8n via: Docker
  • Operating system: Linux 22.04

Hi,

Lets assume you mount it under -v localdir:/home/node/media
you can reference it as ./media/*.png or through /home/node/media/*.png
/home/node as already user and group 1000:1000 for node so it might be a safer bet
Another option would be to mount under -v localdir:/media then you would reference it via /media/*.png or something

mounting it under /home/node might interfere with the already existing /home/node/.n8n map. not sure but better to avoid.

reg,
J.

1 Like