When editing a page in Confluence, we are unable to upload any image via 'Insert files and images' dialog, file list is blank
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.
- Shutdown Confluence
Run the following query against your database:
SELECT BANDANAVALUE FROM BANDANA WHERE BANDANAKEY = 'plugin.manager.state.Map';
- Copy the whole Bandana value
Find the module below and remove it from the result
<entry> <string>com.atlassian.confluence.plugins.drag-and-drop</string> <boolean>false</boolean> </entry>
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:
- Start Confluence again
- You should be able to use the Insert Images and Files and the Upload Files button while editing a page.