...
Summary
The image fails to display in a Showcase macro after a few hours because the image(URL) used becomes invalid. How do I prevent this?
Environment
Confluence Cloud
Diagnostics Steps
Not applicable.
Cause
The image URL that is inserted in the Showcase macro contains a token that expires after a certain period of time.
Workaround
In the page with the attachments, click on the More Actions button and click on Attachments.
...
Right-click on the attachment image you want to use, then click Copy link address (you will be pasting this URL later).
...
Note |
---|
Do not open the image URL in a new tab, this image URL will include a token that expires after awhile. |
Click on View Page to return back, click on pencil icon to Edit the page.
Insert the Showcase macro and fill in the fields.
In the Image URL field, paste the URL which you copied earlier. Then, click on the Save button to save changes.
...
Click on Update or Publish to publish the page and view the image.
Correct image URL link
Code Block |
---|
https://instance-name.atlassian.net/wiki/download/attachments/2162689/nature.jpg?api=v2 |
Incorrect image URL Link
Code Block |
---|
https://api.media.atlassian.com/file/40003c7d-8946-c833878/binary?token=eyJhbGciOc5Mc&client=5b73e1c7-c44c-405e-bfd1-389b6a61693a&name=nature4.PNG |
Resolution
Not applicable.