Details
-
Bug
-
Resolution: Fixed
-
High
-
9
-
Severity 2 - Major
-
1
-
Description
Summary
Drag and Drop of files in Confluence using both the attachments macro or the "Attachments" interface from a page will not work and present errors in the developer console.
Using copy and paste in the Editor doesn't always work as well.
Steps to Reproduce
- Select a file in the computer
- Drag and Drop the file in the referred area of an Attachment Macro, for example.
- Alternatively, one can also drag and drop the file in the "Attachments" drag and drop area of a page.
Expected Results
The page will present a popup with the uploading progress of the attachment
Actual Results
Nothing occurs and the following errors appear in the logs:
jquery-1.7.2-confluence-v5.js:4760Uncaught TypeError: j.isVisible is not a function at Uploader.<anonymous> (jquery-1.7.2-confluence-v5.js:4760) at Uploader.trigger (jquery-1.7.2-confluence-v5.js:4574) at k (jquery-1.7.2-confluence-v5.js:4598) at HTMLBodyElement.<anonymous> (jquery-1.7.2-confluence-v5.js:4604) (anonymous) @ jquery-1.7.2-confluence-v5.js:4760 trigger @ jquery-1.7.2-confluence-v5.js:4574 k @ jquery-1.7.2-confluence-v5.js:4598 (anonymous) @ jquery-1.7.2-confluence-v5.js:4604 Resource interpreted as Document but transferred with MIME type image/png: "file:///Users/fwillig/Desktop/Screen%20Shot%202017-01-13%20at%2014.25.46.png". Navigated to file:///Users/fwillig/Desktop/Screen%20Shot%202017-01-13%20at%2014.25.46.png Navigated to https://fwilligjiraandconfluence.atlassian.net/wiki/pages/viewpageattachments.action?pageId=36133 batch.js?jquery.external=true&locale=en-GB:166 DEPRECATED JS - Cookie has been deprecated since 5.8.0 and will be removed in a future release. Use cookie instead. at b.default (https://d1ixbz5qgnvms3.cloudfront.net/fwilligjiraandconfluence.atlassian.ne…/contextbatch/js/_super/batch.js?jquery.external=true&locale=en-GB:161:209) k @ batch.js?jquery.external=true&locale=en-GB:166 (anonymous) @ batch.js?jquery.external=true&locale=en-GB:167 get @ batch.js?jquery.external=true&locale=en-GB:169 b.default @ batch.js?jquery.external=true&locale=en-GB:161 (anonymous) @ batch.js?jquery.external=true&locale=en-GB:2699 (anonymous) @ batch.js?jquery.external=true&locale=en-GB:2700 batch.js?jquery.external=true&locale=en-GB:166 DEPRECATED JS - Dialog has been deprecated since 6.0.6 and will be removed in a future release. Use require('confluence-create-content/space-blueprint') at HTMLDocument.<anonymous> (https://d1ixbz5qgnvms3.cloudfront.net/fwilligjiraandconfluence.atlassian.ne…/contextbatch/js/_super/batch.js?jquery.external=true&locale=en-GB:413:136) k @ batch.js?jquery.external=true&locale=en-GB:166 (anonymous) @ batch.js?jquery.external=true&locale=en-GB:167 set @ batch.js?jquery.external=true&locale=en-GB:169 (anonymous) @ batch.js?build-number=6452&hostenabled=true&jquery.external=true&locale=en-GB:2873 (anonymous) @ batch.js?jquery.external=true&locale=en-GB:413 o @ jquery-1.7.2-confluence-v5.js:18 fireWith @ jquery-1.7.2-confluence-v5.js:18 ready @ jquery-1.7.2-confluence-v5.js:18 B @ jquery-1.7.2-confluence-v5.js:18 batch.js?jquery.external=true&locale=en-GB:166 DEPRECATED JS - Inline dialog constructor has been deprecated and will be removed in a future release. Use inline dialog 2 instead. at m (https://d1ixbz5qgnvms3.cloudfront.net/fwilligjiraandconfluence.atlassian.ne…d-number=6452&hostenabled=true&jquery.external=true&locale=en-GB:3809:1461) k @ batch.js?jquery.external=true&locale=en-GB:166 (anonymous) @ batch.js?jquery.external=true&locale=en-GB:167 (anonymous) @ batch.js?jquery.external=true&locale=en-GB:168 c @ batch.js?build-number=6452&hostenabled=true&jquery.external=true&locale=en-GB:3809 m @ batch.js?build-number=6452&hostenabled=true&jquery.external=true&locale=en-GB:3809 g @ batch.js?build-number=6452&hostenabled=true&jquery.external=true&locale=en-GB:3809 (anonymous) @ batch.js?build-number=6452&hostenabled=true&jquery.external=true&locale=en-GB:3809 (anonymous) @ batch.js?jquery.external=true&locale=en-GB:413 o @ jquery-1.7.2-confluence-v5.js:18 fireWith @ jquery-1.7.2-confluence-v5.js:18 ready @ jquery-1.7.2-confluence-v5.js:18 B @ jquery-1.7.2-confluence-v5.js:18 batch.js?jquery.external=true&locale=en-GB:407 Failed to run init function: TypeError: Cannot read property 'defaultDropHandler' of undefined function (){b.enableDropZoneOn(a("body")[0])} batch.js?jquery.external=true&locale=en-GB:407 Remove legacy sidebar code when upgrade to AUI 5.8+ (anonymous) @ batch.js?jquery.external=true&locale=en-GB:407 a @ com.atlassian.confluence.plugins.confluence-space-ia:spacesidebar.js?locale=en-GB:30 (anonymous) @ com.atlassian.confluence.plugins.confluence-space-ia:spacesidebar.js?locale=en-GB:35 (anonymous) @ batch.js?jquery.external=true&locale=en-GB:413 o @ jquery-1.7.2-confluence-v5.js:18 fireWith @ jquery-1.7.2-confluence-v5.js:18 ready @ jquery-1.7.2-confluence-v5.js:18 B @ jquery-1.7.2-confluence-v5.js:18 batch.js?jquery.external=true&locale=en-GB:166 DEPRECATED JS - Inline dialog constructor has been deprecated and will be removed in a future release. Use inline dialog 2 instead. at Object.Confluence.Sidebar.createFlyouts (https://d1ixbz5qgnvms3.cloudfront.net/fwilligjiraandconfluence.atlassian.ne….confluence.plugins.confluence-space-ia:spacesidebar.js?locale=en-GB:40:71) k @ batch.js?jquery.external=true&locale=en-GB:166 (anonymous) @ batch.js?jquery.external=true&locale=en-GB:167 (anonymous) @ batch.js?jquery.external=true&locale=en-GB:168 f @ com.atlassian.confluence.plugins.confluence-space-ia:spacesidebar.js?locale=en-GB:40 Confluence.Sidebar.createFlyouts @ com.atlassian.confluence.plugins.confluence-space-ia:spacesidebar.js?locale=en-GB:40 (anonymous) @ com.atlassian.confluence.plugins.confluence-space-ia:spacesidebar.js?locale=en-GB:10 batch.js?jquery.external=true&locale=en-GB:166 DEPRECATED JS - Inline dialog constructor has been deprecated and will be removed in a future release. Use inline dialog 2 instead. at Object.Confluence.Sidebar.createFlyouts (https://d1ixbz5qgnvms3.cloudfront.net/fwilligjiraandconfluence.atlassian.ne…confluence.plugins.confluence-space-ia:spacesidebar.js?locale=en-GB:40:498) k @ batch.js?jquery.external=true&locale=en-GB:166 (anonymous) @ batch.js?jquery.external=true&locale=en-GB:167 (anonymous) @ batch.js?jquery.external=true&locale=en-GB:168 f @ com.atlassian.confluence.plugins.confluence-space-ia:spacesidebar.js?locale=en-GB:40 Confluence.Sidebar.createFlyouts @ com.atlassian.confluence.plugins.confluence-space-ia:spacesidebar.js?locale=en-GB:40 (anonymous) @ com.atlassian.confluence.plugins.confluence-space-ia:spacesidebar.js?locale=en-GB:10
Notes
During page load time the following errors are also appearing on it:
confluence.extra.attachments:attachments-javascript.js?locale=en-GB:1 TypeError: Cannot read property 'bindOpenDialog' of undefined at Object.initAttachmentTable (confluence.extra.attachments:attachments-javascript.js?locale=en-GB:5) at HTMLDivElement.<anonymous> (confluence.extra.attachments:attachments-javascript.js?locale=en-GB:5) at Function.each (jquery-1.7.2-confluence-v5.js:18) at init.each (jquery-1.7.2-confluence-v5.js:18) at HTMLDocument.<anonymous> (confluence.extra.attachments:attachments-javascript.js?locale=en-GB:5) at o (jquery-1.7.2-confluence-v5.js:18) at Object.add (jquery-1.7.2-confluence-v5.js:18) at init.ready (jquery-1.7.2-confluence-v5.js:18) at init (jquery-1.7.2-confluence-v5.js:18) at Function.e [as $] (jquery-1.7.2-confluence-v5.js:18)
Failed to run init function: TypeError: Cannot read property 'defaultDropHandler' of undefined function (){b.enableDropZoneOn(a("body")[0])}
Some cases the attachment will open in another window.
Workaround
Use the "Choose file" button to open the file navigator in the computer. Then, select a file and proceed with the upload of the attachment.
Attachments
Issue Links
- is duplicated by
-
CONFCLOUD-52625 Attachment Copy-Paste or Drag-Drop Do Not Work
- Closed
-
CONFCLOUD-52511 Drag and Drop doesn't work when uploading files from Page Attachments
- Closed
- was cloned as
-
CONFSERVER-46556 As a Confluence user I would like to copy and paste attachments from the clipboard to a Page
- Gathering Interest
- mentioned in
-
Page Loading...