Drag and drop WORKS. However, deletes email. Can we fix?

So, drag and drop works for me. Google Chrome 76 now supports the drag and drop functionality to our web-app. Everything's great.

Except that it deletes the email I dragged over. This does not happen if I am only dragging the files within the email, only if the email is being dragged over.

Is there any clue as to how to stop the email from being deleted? We're so close to an ideal solution at work and it would be nice to close the lid on this issue once and for all. 

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

You posted in the forum dedicated to desktop Outlook, yet you mention Chrome. What does Chrome have to do with using desktop Outlook?
Brian

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I use the outlook application for my emails. 

I drag the outlook email to chrome cor upload to the web app.

That all works fine.

However, upon doing this, my email moves from inbox/sent to the deleted folder within outlook.

Is there some setting I can change to stop that email being deleted?

5 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

We're having the same problem -- seemingly after some system updates (possible outlook/windows updates).

We use a plugin to allow users to drag emails directly into our web application for upload, but this has recently started deleting the email (although upload still works).

(Chrome, Outlook 2016)

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

(Update)

This stopped after restarting Outlook. :)

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Glad it's working. :)

We don't use a plugin here. Which one are you using?

Ours still deletes after a reset.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I assumed everyone needed a plugin to drag/drop directly from Outlook into a web browser, but I guess this is a new feature they added that you've started using?

We wrote our own plugin using "EasyHook", which copies the email to a temporary file to upload from.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I'm having the same problem.

We're using a plugin, but we uninstalled after chrome updated to 76.

Now my emails are being deleted after the drag-and-drop.

Anyone have a solution to this?

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

I may have found a potential solution. The emails get deleted due to the dropData.action being set as ‘move’. If it’s set to ‘copy’ it seems to resolve the problem. This is based on the Javascript code. I have not tested it. The solution was found here:

 

https://bugs.chromium.org/p/chromium/issues/detail?id=322605

This is specifically Chromium, so I am unsure how this affects chrome yet. Also... this is now not an issue with outlook, but with chrome/javascript. 

I don't know how to fix the issue as javascript is based on the website rather than the user. I'll keep looking for how to modify the value.

I hope this will help you to resolve your issue or find someone who does!

4 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

In my particular application, I set the dropEffect to "copy" in the dragOver event.

Ex:

Angular component

@HostListener("document:dragover", ["$event"]) dragOver(ev: DragEvent): void {

    if (ev && ev.dataTransfer && ev.dataTransfer.dropEffect != "copy") {

        ev.dataTransfer = "copy";

    }

}

You can extrapolate that to a normal javascript function without issue, I think.

Setting dropEffect in any other events didn't seem to have an effect.

5 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Thank you. This fixes the issue, in my case I had something like this.

$(document.body).on('dragover', function (e) {

e.originalEvent.dataTransfer.dropEffect = 'copy'; // 1 line of code fix

e.preventDefault();        

       // whatever

}).on('drop', function (e) {

// whatever

});

That one line just there solves the issue, even having it like that in a chain.

9 people found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

* Please try a lower page number.

* Please enter only numbers.

* Please try a lower page number.

* Please enter only numbers.

 
 

Question Info


Last updated November 24, 2020 Views 10,176 Applies to: