Hello everyone,
I need help to configure an http node.
I would like to be able to upload a binary file that I receive in my webhook into GLPI using the API.
1. GLPI API
After consulting the GLPI documentation, I found the method to use (below
)
$ curl -X POST \
-H 'Content-Type: multipart/form-data' \
-H "Session-Token: MySessionToken" \
-H "App-Token: MyAppToken" \
-F 'uploadManifest={"input": {"name": "Uploaded document", "_filename" : ["file.txt"]}};type=application/json' \
-F 'filename[0]=@file.txt' \
'http://path/to/glpi/apirest.php/Document/'
So I decided to test it first with a simple curl to make sure the API was working properly.
To do this, I ran the following curl (which I adapted for a Windows CMD) ![]()
curl -X POST ^
-H "Session-Token: MySessionToken" ^
-H "App-Token: MyAppToken" ^
-F "uploadManifest={\"input\": {\"name\": \"Test\", \"_filename\": [\"test.txt\"]}}" ^
-F "filename[0]=@C:\Users\x\Downloads\test.txt" ^
https://myglpi.com/apirest.php/Document
It worked perfectly ![]()
{"id":110768,"message":"Item successfully added: Test (110768)","upload_result":{"filename":[{"name":"6808f8d90ae8a2.47080004test.txt","size":3250,"type":"text/plain","url":"https://myglpi.com/files/6808f8d90ae8a2.47080004test.txt","deleteUrl":"https://myglpi.com/apirest.php?filenam=6808f8d90ae8a2.47080004test.txt","deleteType":"DELETE","prefix":"6808f8d90ae8a2.47080004","display":"test.txt","filesize":"3.17 KiB","id":"docfilename2129973353"}]}}
So I’m sure the API is working properly ![]()
2. My Workflow
So I made my flow and configure my nodes but I can’t get the same result.
All I do is have errors that I don’t understand.
3. Output 
I’m 99% sure it’s a “ fake error ”.
But therefore it doesn’t help me find the problem …
4. Information on my Self-Hosted n8n setup
- n8n version: 1.89.2 (Self-Hosted)
- Database (default: SQLite): default
- n8n EXECUTIONS_PROCESS setting (default: own, main): default
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker desktop
- Operating system: windows
I’d be very grateful if someone could tell me what I’m doing wrong or how I’m supposed to configure my http node.
Thank you in advance to anyone who takes the time to help me. ![]()
ENGT
PS: I’ve replaced the tokens and url for security reasons

