Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how to load HTML files as attachments using loadFiles CLI action in Confluence cloud.

Instructions

By default the loadFiles

...

action converts all text, HTML and markdown files into pages in Confluence.

...

With HTML files, the content is wrapped within an HTML macro. Since HTML macro is not currently available in Confluence Cloud

...

, the loadFiles action results in a blank page.

Alternatively,

...

the loadFiles action

...

with an autoPage option adds the HTML files as attachments to page.

...

 This example works because

...

autoPage contains no value and hence does not result in automatic page conversion.

Code Block
themeMidnight
--action loadFiles --file index.html --space TEST --options "autoPage="


Info
autoPage option with  with values (texttext, HTML and markdown) provides  provides customised behaviour for the loadFiles action. If  If a value is provided for with autoPage, only the types specifically listed will be are automatically converted to pages as is done with similar to the default behaviour.