Currently, if we move files/folders from one folder to another, the FileManager sends two requests to the backend - Create and Destroy. The Create method is called to "create" the files in their new destination and the Destroy method removes the files from their previous location.
The two methods are executed independently and the results from each of them don't affect the result of the other. There are scenarios in which when we move files, the Create call can fail or be prevented because of limited user rights, but the Destroy method will be executed resulting in files' deletion. The same is applicable in scenarios where the Destroy is unsuccessful.
It will be a very useful FileManager feature if there is a relation in the Create and Destroy methods' execution.
Hello, Greg,
As you can see, the issue that my colleague referenced is now resolved and closed. In addition, I would suggest referring to the new command event in our documentation, where the status of the commands could be revised:
https://docs.telerik.com/kendo-ui/api/javascript/ui/filemanager/events/command
Hope this would help.
Regards,
Nencho
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
Hi Nigel,
Indeed, the lack of such relation between the two requests may result in deleting a file, if Create fails and Destroy succeeds, or file duplication, if Create succeeds and Destroy fails. We will take the following issue into consideration for FileManager improvements.
Regards,
Dimitar
Progress Telerik
I have found this functionality to be a critical bug in the FileManager. Using the demo page here https://demos.telerik.com/aspnet-mvc/filemanager I've been able to replicate the loss of files. Steps are simply:
Almost immediately, you will find there's no longer 10 images as the Create routine fails to complete before the Destroy routine is initiated resulting in 1 or more files being lost.
This is not so much a feature request as a critical bug.