The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot upload image to confluence page -Reason: "Forbidden"

Arun Prakash
November 30, 2020

Command used : 

curl -v -S -U user:Password -X POST -H "X-Atlassian-Token: no-check" -F "file=@image2020-11.png" -F "comment=this is my file" "https://confluenceURL/rest/api/content/199999999/child/attachment"

 

Error message received : 


{"statusCode":403,"data":{"authorized":false,"valid":true,"allowedInReadOnlyMode":true,"errors":[],"successful":false},"message":"User not permitted to create attachments for content: ContentId{id=199999999}","reason":"Forbidden"}* schannel: server closed the connection

 

I can upload the image when I login with the same ID in confluence UI.

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Kishan Sharma
Community Champion
July 31, 2021

Have you found any solution to this ? I have tried this and got the same response. Seems like attaching documents to comments is disabled by default.

TAGS
AUG Leaders

Atlassian Community Events