When editing a page in Confluence, we are unable to upload any image via 'Insert files and images' dialog, file list is blank

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

    

Summary

The space where thumbnails are supposed to show is blank, we cannot select anything there. It is the same whether we access the dialogue box via the insert image button directly, or via '+ (Insert more content)' > Files and images, or via Ctrl+M.

Environment

This problem was identified in Confluence server and datacenter version 7.4. It could also affect other versions of Confluence.

Diagnosis

  • No clear error on the application logs.
  • While editing a page, the Insert Files and Images macro shows a blank list, and the Upload Files button doesn't work:
  • The following Javascript error is seen in the Developer Tools in the browser:
Uncaught Error: confluence-editor/files/file-item/file-item-model missing plupload

Cause

The module com.atlassian.confluence.plugins.drag-and-drop is disabled in the BANDANA table of Confluence:

 <entry>
    <string>com.atlassian.confluence.plugins.drag-and-drop</string>
    <boolean>false</boolean>
  </entry>


Solution

Always backup your data before performing any modifications to the database.

  1. Shutdown Confluence
  2. Run the following query against your database:

    SELECT BANDANAVALUE FROM BANDANA WHERE BANDANAKEY = 'plugin.manager.state.Map';
  3. Copy the whole Bandana value
  4. Find the module below and remove it from the result

     <entry>
        <string>com.atlassian.confluence.plugins.drag-and-drop</string>
        <boolean>false</boolean>
      </entry>
  5. Now, update the database enabling the module by removing it from the previous. Please, note that the BANDANAVALUE may vary depending on your instance. Below is an example:

    Update query example:
    update BANDANA set BANDANAVALUE = '<map>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:blogpost-trashed-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-inline-tasks:task-email-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:comment-created-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:page-trashed-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:blogpost-edited-hipchat-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:page-edited-hipchat-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.share-page:share-page-hipchat-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:page-moved-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-like:like-created-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-request-access-plugin:request-access-notification-email-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:follower-added-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>confluence.languages.de_DE</string>
        <boolean>false</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:page-created-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-onboarding:notification-template-less-users-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-file-notifications:file-content-update-email-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-onboarding:notification-template-no-spaces-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-software-blueprints:jira-sprints-item</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-mentions-plugin:mention-hipchat-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:comment-edited-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-inline-comments:notification-template-new-mail-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>org.techtime.confluence.plugins.easysso</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-notifications-batch-plugin:batching-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.share-page:share-attachment-email-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.share-page:share-draft-email-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:blogpost-created-hipchat-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:page-edited-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-inline-comments:notification-template-resolve-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-inline-comments:notification-template-reply-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-inline-tasks:task-hipchat-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.whatsnew:show-whats-new-flag</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.share-page:share-page-email-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:blogpost-created-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:comment-edited-hipchat-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:blogpost-edited-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:follower-added-hipchat-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:comment-created-hipchat-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:page-created-hipchat-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>org.techtime.confluence.plugins.usermanagement</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-content-notifications-plugin:forgot-password-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>org.techtime.plugins.techtimecore</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-mentions-plugin:mention-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-file-notifications:file-content-remove-email-notification-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-request-access-plugin:grant-access-notification-email-template-body</string>
        <boolean>true</boolean>
      </entry>
      <entry>
        <string>org.swift.confluence.script:script</string>
        <boolean>false</boolean>
      </entry>
      <entry>
        <string>com.atlassian.confluence.plugins.confluence-like:like-created-notification-template-hipchat-body</string>
        <boolean>true</boolean>
      </entry>
    </map>' where BANDANAKEY = 'plugin.manager.state.Map';
  6. Start Confluence again
  7. You should be able to use the Insert Images and Files and the Upload Files button while editing a page.


Last modified on Mar 30, 2021

Was this helpful?

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