Hi, I just got started with n8n. I’m trying to build a test workflow that reads a single file from Dropbox and then uses a HTTP PUT to send the file to another url.
The Dropbox component works fine and retrieves the file and stores it in a binary property called “data”. But I am unable to configure the Http Request component to upload the file.
Here’s what I have so far:
{
"parameters": {
"requestMethod": "PUT",
"url": "http://host.docker.internal:9998/tika",
"responseFormat": "string",
"jsonParameters": true,
"options": {
"bodyContentType": "raw"
},
"bodyParametersJson": "data"
},
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
730,
300
]
}
This works, but it just uploads the string “data” instead of the contents of the file. I tried a bunch of other request settings but I haven’t been able to get it to work yet.
Sending a file to the service using “curl -T http://localhost:9998/tika” works fine so I know the service is running. I just need to reproduce exactly what curl does in n8n.
Is there documentation somewhere on how to upload files with the Http Request component? I feel like I’m overlooking something very simple. I could use a custom function but I feel the Http Request component should be able to do this.
Thanks!