Quick click causes "The destination folder is the subfolder of the source folder" error.

When a folder is selected and then the source folder of that folder is selected is quickly after it causes the "The destination folder is the subfolder of the source folder" error. Is there a way to disable this error message for this scenario and just keep it when moving files or folders. Video Attached. 

Attachment: ScreenCapture_bbe6297b.zip

3 Replies 1 reply marked as answer

SP Sowmiya Padmanaban Syncfusion Team December 16, 2020 11:44 AM UTC

Hi Jonathan Batselos,  
 
Greetings from Syncfusion support. 
 
We have checked your reported problem with FileManager component. You reported problem will occur when you drag and drop selected folders/files in same path. 
 
We have a workaround solution to resolve your problem. In this solution, we have check the drag and drop path of files/folder and prevent the drop action. 
 
Please, refer the below code snippet. 
 
  @Html.EJS().FileManager("file").AjaxSettings(new Syncfusion.EJ2.FileManager.FileManagerAjaxSettings 
{ 
    Url = "/Home/FileOperations", 
    GetImageUrl = "/Home/GetImage", 
    UploadUrl = "/Home/Upload", 
    DownloadUrl = "/Home/Download" 
}).View(Syncfusion.EJ2.FileManager.ViewType.Details).FileDragStart("dragStart").AllowDragAndDrop(true).FileDragStop("dragStop").Render() 
 
<script> 
    document.addEventListener('DOMContentLoaded', function () { 
        var start_path; 
        var end_path; 
    }) 
    function dragStart(args) { 
        start_path = args.fileDetails[0].filterPath + args.fileDetails[0].name; 
    } 
    function dragStop(args) { 
        end_path = args.fileDetails[0].filterPath + args.fileDetails[0].name; 
        if (start_path == end_path) { 
            args.cancel = true; 
        } 
    } 
</script> 
 
Please, refer the sample link below. 
 
 
However, we have consider this as a bug from our end. We will include the fix for this bug in our Volume 4 SP1 release which is expected to rolled out by the end of January 2021.  
  
You can track the status of this issue fix through the following feedback portal link.  
 
 
We appreciate your patience. 
 
Regards,  
Sowmiya.P 



SP Sowmiya Padmanaban Syncfusion Team April 19, 2021 10:46 AM UTC

 Hi Jonathan Batselos,  
 
Sorry for the inconvenience. 
 
Due to some high priority works, we were unable to include the fix in this release. We will include the fix for this issue in Volume 1 SP1 release which is expected to be released at the mid of May 2021. 
 
We appreciate your patience. 
 
Regards,  
Sowmiya.P 



SM Shalini Maragathavel Syncfusion Team July 1, 2021 12:42 PM UTC

Hi Jonathan, 

Thanks for your patience. 

We are glad to announce that our Essential Studio 2021 Volume 2 Main release (v19.2.0.44)  is rolled out successfully. The issue with “Error dialog occurs when drag and drop on same folder in FileManager component” has been resolved in this release. To access this fix, we suggest you to update the package to the version 19.2.0.44. 

Please, refer the below sample link. 



We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance. 
Regards, 
Shalini M. 


Marked as answer
Loader.
Up arrow icon