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

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events