Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Confluence] how to download an image as a file into local file system #1175

Open
nnako opened this issue May 24, 2023 · 1 comment
Open
Labels
confluence Atlassian Confluence (Cloud, Server or Dataceneter)

Comments

@nnako
Copy link

nnako commented May 24, 2023

Hi,

the atlassian-python-api provides some functions for uploading images into a Confluence space / page / ... . But I wonder if there is a function to actually download an existing image from a page where it has previously been attached. Skimming through the documentation, there seems to be one relevant function: get_attachments_from_content(), and maybe one other promising general function: get_page_child_by_type().

With none of those I have been successful, yet, while attempting to actually get an image file (e.g. test.png) from the Confluence page (identified by its page id) down into my local computer's target folder. I just get promising responses containing various metadata, even containing links which seem to point to the actual attachment.

-> Is there a function to directly download an attachment from a page into the local target file system?
-> If not, what would the practical steps be to get an image actually downloaded?

@gonchik gonchik added the confluence Atlassian Confluence (Cloud, Server or Dataceneter) label Aug 14, 2023
@gkowalc
Copy link
Contributor

gkowalc commented Dec 12, 2023

This functionality was recently added to the project see pull request #1283.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confluence Atlassian Confluence (Cloud, Server or Dataceneter)
Projects
None yet
Development

No branches or pull requests

3 participants