Forums

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

Curl command to POST a folder to confluence

Sateesh Ayyagari
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 9, 2019

Is there a way to post a folder to a confluence page?  I am using allure reports which output a folder containing html and its dependent image and css files.  I am using this curl command to post a file.

curl -v -S -u <user_name>:<pwd> -X POST -H "X-Atlassian-Token: no-check" -F "file=<html_file>" -F "comment=<comment>" "<link>"

The attachments marco in confluence is allowing only files to be uploaded.  Wondering if there is another macro to upload a folder?

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 10, 2019

The attachments macro accepts only files because there are no directories in Confluence - you just have to upload each file in your folders to Confluence.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events