Hello, I've been wrestling with this and can't figure out the cause. I'm trying to upload an attachment to Confluence using the REST API with the details below. I'm getting 500 errors every time. Unfortunately I don't have access to the Confluence log. Is there anything obvious I'm missing here, using the example below? I've confirmed that the file referenced does exist in the /tmp directory on the server.
Endpoint:
https://myServer/confluence/rest/api/content/209128247/child/attachment
Request body:
fileName=@/tmp/f3a6349b1b0ebc94228a11b39b4bcbb5.png
Added header:
{X-Atlassian-Token=no-check}
Response:
[ERROR CODE: 500 ] Method failed: (/confluence/rest/api/content/209128247/child/attachment) with code: 500