Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

af:inputFile drag & drop from Outlook deletes the mail in Outlook

IntrisRobJan 20 2020 — edited Mar 4 2020

In our ADF application we use the af:inputFile to upload documents/files into our application.

The end users often use it from Outlook to attachment an email to an 'order'.

They do a drag and drop from Outlook to the browser and drop the file on the inputFile component.

By default this wasn't possible in the past, you can't drag & drop an email from Outlook but with a thirdparty component it is possible.

Since Chrome 76 this changed, now you can drag & drop an email into the ADF af:inputFile without any external software being installed.

This however causes the email to be deleted from Outlook.

So the current situation:

- drag and drop from Outlook to Firefox --> doesn't work

- drag and drop from Outlook to Chrome -> it does work but the email is deleted

- drag and drop from Outlook to Edge -> it does work and the email is still available inside Outlook.

We of course don't want the email to be deleted and like to correct this behaviour.

I found the following article which describes the same issue: https://answers.microsoft.com/en-us/msoffice/forum/all/drag-and-drop-works-however-deletes-email-can-we/865f60c3-7980-4465-8a19-4d60b0ae5aba?page=1

It seems that multiple 'dropEffects' exist, 'move' and 'copy'.

I assume the following.

- Chrome deletes the mail when 'move'

- Chrome will keep the mail when 'copy'

- Edge ignores 'move' and 'copy'.

Inside the article there is a suggestion to change the dropEffect (and an example) but I've no idea how to do this inside ADF or at least I can't find it.

I also tried to look at the generated html source code to check if I could fine something similar to 'dropEffect' but I wasn't able to find anything.

The code:

mspaint_HJNbCVZK73.png

As you can see the af:inputFile is quite simple and standard within ADF.

Does anyone have a suggestion/idea how to change the dropEffect for the af:inputFile? I would like to try and put it to 'copy' to see the effect.

This post has been answered by IntrisRob on Mar 4 2020
Jump to Answer
Comments
Post Details
Added on Jan 20 2020
2 comments
432 views