atlassian-python-api icon indicating copy to clipboard operation
atlassian-python-api copied to clipboard

confluence.download_attachments_from_page only fetches 50 files

Open moseisleydk opened this issue 3 months ago • 0 comments

Using this;

`attachments = confluence.download_attachments_from_page(confluence_page_id, path=directory)

    with os.scandir(directory) as entries:
        for entry in entries:
            if entry.is_file():
                attach_file_to_page(parent_url + "/spaces/" + slug + "/pages/WebHome",entry.path,entry.name)`

and

attachments % ls -l 57245722 | wc -l

gives 50

As the download_attachments_from_page dont have pagination that is a problem.

moseisleydk avatar Sep 25 '25 15:09 moseisleydk