Drag and Drop deletes the file from Outlook

Hello,
the file upload component works great. However, there is one issue - when I drag and drop a file from outlook it uploads the file but deletes it in outlook afterwards. I did a quick research and it seems other people have faced similar issues when working with outlook (not with syncfusion components). One user wrote "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."

3 Replies 1 reply marked as answer

JM Jeyanth Muthu Pratheeban Sankara Subramanian Syncfusion Team September 21, 2020 04:58 PM UTC

Hi Krasimir, 

Greetings from Syncfusion support. 

We have checked your query. We can prevent the deletion of outlook item while drag and drop by configuring the DropEffect property as Copy.


 

<SfUploader AutoUpload="false" DropEffect="@Syncfusion.Blazor.Inputs.DropEffect.Copy"> 
    <UploaderEvents ValueChange="OnChange" ></UploaderEvents> 
</SfUploader> 


Please find the sample in the below link. 


Regards, 
Jeyanth. 


Marked as answer

KI Krasimir Ivanov September 21, 2020 08:24 PM UTC

This solved the issue. Thank you!


PO Prince Oliver Syncfusion Team September 22, 2020 06:20 AM UTC

Hi Krasimir, 

Most welcome. We are glad to help you out. 

Regards, 
Prince 


Loader.
Up arrow icon