cancel
Showing results for 
Search instead for 
Did you mean: 

ADF Drag & Drop with Outlook Email

Cuzzins
Champ on-the-rise
Champ on-the-rise

Hi,

I am building a small application using the ADF framework and it includes the Drag and Drop area component. This works fine when dragging in from the file system but the result varies when dragging an email in from outlook.

The .msg file does correctly get uploaded, but it is 'deleted' from the Outlook client. Ctrl-z does bring it back, but that's not an ideal solution.

The issue appears to be different defaults across the browsers for the .dropEffect setting:

https://developer.mozilla.org/en-US/docs/Web/API/DataTransfer/dropEffect

The default in Chromium/Chrome at the moment in this case is .dropEffect = "move" rather than .dropEffect = "copy".

Does anyone know of a setting/code change that I can make that would allow me to explicitly set this on the ADF component rather than relying on the browser default? In this case I would expect the underlying component to always be set to "copy" rather than "move".

Any help would be appreciated!

1 ACCEPTED ANSWER

dvuika
Star Collaborator
Star Collaborator

It should be part of the 4.0 release. The corresponding changes have been merged before the release.

View answer in original post

9 REPLIES 9

dvuika
Star Collaborator
Star Collaborator

This has been fixed already and will be available in the next release of ADF (4.0)

Cuzzins
Champ on-the-rise
Champ on-the-rise

Awesome! Is there any option for older versions?  Am not sure when I can upgrade to ADF 4 and have an existing customer complaining that their email is going missing. 

Cuzzins
Champ on-the-rise
Champ on-the-rise

Also, can I get an idea of when the 4.0 release will be?

Cuzzins
Champ on-the-rise
Champ on-the-rise

Hi,

I tried the 3.10-beta3 that has this fix in the directive. But it didn't seem to help for me when using the adf-upload-drag-area control. Is the directive used by this component under the covers?

I'm working against a beta I know, but just trying to work out if I need to build a custom div that uses the directive to get this fix.

Cheers,

Matt

dvuika
Star Collaborator
Star Collaborator

Thank you for the feedback. I have identified an issue and working on a fix

Cuzzins
Champ on-the-rise
Champ on-the-rise

Can I assume the fix will not be in 4.0 as I was just notified that was already released. So perhaps a 4.1 beta? Just need to be able to give some info to my PM.

dvuika
Star Collaborator
Star Collaborator

It should be part of the 4.0 release. The corresponding changes have been merged before the release.

Cuzzins
Champ on-the-rise
Champ on-the-rise

OK, awesome, just upgrading now... will let you know how it goes. Appreciate the assistance.

Cuzzins
Champ on-the-rise
Champ on-the-rise

Just tested and it does appear to be working in 4.0 for my case! Thanks!