Unable to Preview attachments when viewing a page but other attachment functions work without issue

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

When clicking on an attachment to preview it, in the normal page view, nothing occurs.

  1. Previewing an attachment when in edit mode works fine
  2. Previewing/viewing the attachment on the attachments page works fine
  3. Downloading files works without issue


The following appears in the HAR output when attempting to preview the image:

Diagnosis

Diagnostic Steps

  • Verify the Confluence Document Conversion Library, Confluence Previews, Confluence Files (confluence-files), Confluence View File Macro system apps are all enabled, also verify that all their modules are enabled. For Office documents, also check that the Office Connector app is enabled. 
    •  > General Admin > Manage Add-ons > select System from the drop down menu > search for Confluence Document Conversion Library
  • Alternatively, you can also run the below SQL query against your database to see any Confluence apps that are currently disabled

    SELECT BANDANAVALUE FROM BANDANA WHERE BANDANAKEY = 'plugin.manager.state.Map';


    • And you should see this in the results:

      <string>com.atlassian.confluence.plugins.confluence-document-conversion-library</string> <boolean>false</boolean>
      <string>com.atlassian.confluence.plugins.confluence-files</string><boolean>false</boolean>

Cause

Some modules in the Confluence Previews app are dependent on the Confluence Document Conversion Library and Confluence Files (confluence-files). If either or both are disabled it will not be possible to preview files on the page though other preview and download actions work as expected.

Resolution

Re-enable the Confluence Document Conversion Library app (and any other required apps):

  1.  > General Admin > Manage Add-ons > select System from the drop-down menu > search for Confluence Document Conversion Library and Confluence Files (confluence-files)
  2. Enable the Confluence Document Conversion Library and Confluence Files (confluence-files) plugin
  3. Enable any disabled modules
  4. You should now be able to preview files on the page

You can also clear all the Confluence apps back to their default state by following this article: How to reset all Confluence plugins back to their default state through the database

tip/resting Created with Sketch.

Please ensure you create the proper backups of your instance and database, and stage a test prior to making changes to your production database

Last modified on Feb 5, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.