Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Uploading attachments using API from Windows machine


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"


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
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


0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence

Confluence: Where work and wellness meet

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 . 🙋‍♀️ ...

751 views 5 21
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you