Form node and image file uploads (extract EXIF data)

I’m trying to build a simple workflow that receives an image file via a form or a webhook, then extracts the EXIF data and at this moment the file is no longer required and can be deleted.

In order to do so I need to run an exiftool locally on the host (running n8n in a docker).
An alternative would be to run a node.js or python code to process the uploaded file.

In both cases, I need to reach the uploaded file, so I can analyze it.

Here’s my current simplified workflow:

  1. get a file via a file field
  2. write the file to disk

problem:

When I check the local disk I don’t see any file there. In fact, it doesn’t seem to have been saved locally.

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.84
  • Database (default: SQLite): postgresql
  • n8n EXECUTIONS_PROCESS setting (default: own, main): regular
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: raspberry pi os

The working directory in the n8n docker container shoul be /home/node/.n8n.
And the file should be saved there - inside the container!
Did you define a volume -v data:/home/node/.n8n when starting your container?

1 Like

Spot on @Franz !
The file is indeed there. for some reason I assumed it would be uploaded to the shared volume:

volumes:
      - n8n_storage:/home/node/.n8n
      - ./n8n/backup:/backup
      - ./shared:/data/shared

(using docker-compose.yml fro the starter kit)

Now I can try moving forward to analyze the file.

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