Hello! I am attempting to upload a file to a Confluence page from Windows PC. All help found was related to unix. Regardless, here is what I am doing (I guess wrong).
curl -D- -u 853565513:mypassword -X POST -H "X-Atlassian-Token: nocheck" -F "file=@C:\Users\853565513\Documents\Python\CR_Tasks\result.txt" https://firm-confluence.mycompany.com/rest/api/content/433464634/child/attachement
The result is:
HTTP/1.1 405
X-ASEN: SEN-9984988
X-Confluence-Cluster-Node: 4fa53d96
Set-Cookie: JSESSIONID=A819445E079548413ECD9DD0FB66F5EE; Path=/; Secure; HttpOnly
X-Seraph-LoginReason: OK
X-AUSERNAME: 853565513
Allow: HEAD,GET,OPTIONS
X-Content-Type-Options: nosniff
Content-Length: 0
Date: Wed, 30 Mar 2022 13:01:32 GMT
The file does not shows in Attachements.
The error seems to be 405, but I am not able to figure out why. Using UI I am able to load files to the page.
Does anyone hit the wall in the same point?
Tnx., Don