Hello,
I’m looking to use the Stirling PDF API to merge multiple PDFs together.
I’d like to automate this, but I can’t seem to dynamically send multiple pdfs via an HTTP POST request.
It works in Postman. But I can’t get it to work in n8n.
Stirling API:
Postman:
In the Http POST node we can only pass fixed values for n8n binary data, there is no expression option.
Thank you in advance for your help.
Best Regards,
1 Like
Hi @SauerWorkflow
You wouldn’t be able to do this with one singular HTTP request node - you can check out this post for some alternative options, though:
Hi @Nick_K_H , does your service accept these files in individual requests? If so, you can split our files into individual n8n items with one file each:
If your service requires all files in a single request in separate fields I am afraid you’d have to create multiple routes in your workflow that handle the different possible options. You could use a Filter node here checking if {{ Object.keys($binary).length }} equals 2, if so connect an HTTP Request node processing attachment_0 and attachmen…
ekadin
November 2, 2023, 2:17am
3
system
Closed
January 31, 2024, 2:17am
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.