I’m having issues uploading files to Gemini Files through its API.
First I thought it was a problem of self-hosted n8n using always base64 format, but I converted the file to binary with an Aggregate node and still wouldn’t work.
This is similar to this issue.
And this is the documentation: Files API | Gemini API | Google AI for Developers
I read this is solved by setting the env N8N_DEFAULT_BINARY_DATA_MODE
to filesystem
but in queue mode this is not possible. Jan said (I spent some time trying to retrieve the post) in the future Memory mode will be deprecated, and only filesystem
will be permitted, I don’t know how they will handle this in queue mode.
Information on your n8n setup
- **n8n version:**1.89.2
- **Database (default: SQLite):**postgres
- **n8n EXECUTIONS_PROCESS setting (default: own, main):**queue
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**npm
- **Operating system:**Ubuntu 24.04