Preview Unavailable for Images
Asked by Brandon Deaton:

Users in my space continue to ask why they are unable to see images on my confluence page.  

Originally they are able to see it, but subsequently after editing the page, they are no longer able to see ++**ANY**++ of the attachments on the page, without inspecting the page and "Clearing Cache and Hard Reloading".  

Surprisingly, the report gets published successfully and all attachments can be previewed as expected at first.  
++The problem starts **only** after I hit on the **Edit** button and make some text based changes and then hit on the **Update** button.++

While looking at the updated page (i.e., I am no longer in "Editing" mode at this point), **++all++** of the previews of the *.png* screenshots and *.log* files get a *Preview Unavailable* prompt for some/if not all of my users and myself.  

Is there any workaround for this/script we could run to resave any attachments or images?  
Any solutions are welcome, but fast/permanent solutions would be greatly appreciated.  

-Thank you


Answers:
author: Abi Brown- Kolekti
body: I would echo what Kristian says - in my experience permissions can be an issue if you copy and paste - especially if one is on a server/ DC instance originally, as the permissions may have been set there and can cause issues in the cloud

Thanks

Abi

comments: author: Brandon Deaton
body: The problem is, the users can view the Images at first, but then eventually they are not able to.  

Also, if they clear cached and hard reload, they are able to see the images, but only on the page that they are currently viewing.  


author: Kristian Klima
body: Hi [@Brandon Deaton](/t5/user/viewprofilepage/user-id/5597595) and welcome to the community.

I've experienced the case of disappearing images in the following scenarios. Hopefully, this will help you to rule out potential cause and reach the solution.

* An image was added as a 'link to an image' from external source while copy/pasting the content. I may display properly at first but then disappears. So check if the images/files that you want to display on the page are actually attached to the page (Attachments screen).
* The image was properly inserted and can be seen as an attachment on the page (on the Attachments screen). Changing the name of the attachment may cause it to disappear from the page view. I actually reported this as a bug.
* The image (file) retained permissions from the original space (page). This is often the case with excerpted content - the macro displays content from another page/space but only users with proper permissions in that original page/space can see it.

comments: author: Brandon Deaton
body: [@Kristian Klima](/t5/user/viewprofilepage/user-id/5074962)   
Most of the images are screen snips that were taken to use as part of a product description in our knowledgebase.  

Is just copying and pasting a snippet not the correct way to insert a picture into a page?


author: Kristian Klima
body: [@Brandon Deaton](/t5/user/viewprofilepage/user-id/5597595) That should work just fine... but test if you actually have the images listed as attachments with proper file names. And check if the file name displayed in the view mode (when you click the image to embiggen it) is identical to the file name in the attachments list.

Weird as it sounds, they might be different.

![2024-09-20_18-23-23.png](https://community.atlassian.com/t5/image/serverpage/image-id/348428iBC97A752440811DA/image-size/large?v=v2&px=999 "2024-09-20_18-23-23.png")

They're identical here but when they weren't... the image would not be displayed in the view mode.


author: Brandon Deaton
body: I posted this on the answer above:  

The users can view the Images at first, but then eventually they are not able to.  
It is not immediately when the images get put in the space.  

Also, if they clear cache , they are able to see the images, but only on the page that they are currently viewing.