The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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
Feeling overwhelmed by the demands of work and life? With a 25% increase in the prevalence of anxiety and depression worldwide during the pandemic, for most of us, it’s a resounding yes . 🙋♀️ ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events