Uploading a new version of an attachment breaks the image preview

When uploading an updated version of an attachment to a page either via PUT /wiki/rest/api/content/{id}/child/attachment,
POST /wiki/rest/api/content/{id}/child/attachment/{attachmentId}/data
or copySinglePage
the preview only shows a failed to load icon

image

When navigating to Advanced Details β†’ Show Source the image is displayed correctly.

When initial uploading the image and inserting an image and attachment via the page content update api the included image will be displayed perfectly. Preview of the image when downloading is also working. So there can’t be anything wrong with the file upload.

Did anyone find a way to work around this issue?

1 Like

The issue is being tracked here: [CONFCLOUD-71173] Attachment (preview) Fails to load after re-uploading attachment with the same exact name on picker screen - Create and track feature requests for Atlassian products.?

2 Likes