Describe the problem/error/question
I’m trying to upload an attachment file from a gmail message to a REST API that accepts the file in a ‘document’ form field that should contain the ‘file’. I’m not clear on the format of what this file should be. I’m trying to use a convert node to get the file contents and embed them in the http request but failing with the contents not being recognized correctly.
What is the error message (if any)?
ERROR: Bad request - please check your parameters
400 - “{"document":["The submitted data was not a file. Check the encoding type on the form."]}”
Please share your workflow
Share the output returned by the last node
ERROR: Bad request - please check your parameters
400 - “{"document":["The submitted data was not a file. Check the encoding type on the form."]}”
Information on your n8n setup
- n8n version: 1.20.0
- Database: (default: SQLite)
- n8n EXECUTIONS_PROCESS setting: default
- Running n8n via : docker
- Operating system: ubuntu 23.04

