First of all, please note I'm not really experienced with any of this, but I think there's a little problem with the Upload feature on Editor and I'll try to be as detailed as possible.
When uploading to Editor a .msg file directly from Outlook (Windows Application) to Chrome, the file is uploaded successfully but the e-mail disappears from Outlook (it moves it to Deleted Items folder). This doesn't happen when using Edge browser - it works as it should.
From what I can find about this, is related to a global event called event.dataTransfer.dropEffect .
This event is somehow defined as move instead of copy. What I can't understand is why on Edge this seems to be defined as copy, but as move on Chrome.
My idea to solve this was to search for event.dataTransfer.dropEffect on datatables.Editor.js but I can't seem to find this declared in order to change it from move to copy.
I tried to add it to dragDrop.on, but it doesn't seem to work too.
dragDrop.on( 'drop', function (e) {
if ( conf._enabled ) {
e.originalEvent.dropEffect = "copy";
Editor.upload( editor, conf, e.originalEvent.dataTransfer.files, _buttonText, dropCallback );
dragDrop.removeClass('over');
}
return false;
} )
Does anyone has any idea how this can be solved?
My Chrome version is 79.0.3945.130
Related articles about this subject, i know it's different scripts, but it seems to be a general problem:
- https://support.google.com/chrome/thread/14094827?hl=en
- https://answers.microsoft.com/en-us/msoffice/forum/all/drag-and-drop-works-however-deletes-email-can-we/865f60c3-7980-4465-8a19-4d60b0ae5aba?rtAction=1575537469456&page=2