Upload PDF Files to Jira Service Management

i’m creating a workflow to upload files into Jira Service Management tickets.
I’m able to upload png, docx files without issues, however when uploading a pdf file, the file is uploaded, but the name is replaced by the id of the file. Below an example.

Some ideas?
Many thanks!

It looks like your topic is missing some important information. Could you provide the following if applicable.

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

i’m using the cloud version 1.31.2.

hello @mxp

The issue is because your binary data does not have the fileName property. You can set it with the Code node after the HTTP Request node (or ask server to provide the filename)

BTW, you can set the field Input Data Field Name to {{ $binary.data.fileName }} instead of pointing to some Code node

Hello @barn4k,
when i try to apply the code for adding the filename, i got anerror because the filename property doesn’t exist. What am i missing?

thank you!

Ah, you don’t have the binary property data, it’s the red text from the left panel (KippZonen…).
I suppose you have renamed that property in the HTTP node

1 Like

Thank you for your help!
it’s working!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.