When one file is dragged and dropped onto the control the Upload endpoint is called twice.
My control is declared as follows:
@(Html.Kendo().FileManager().Name("documentExplorer")
.DataSource(ds =>
{
ds.Read(operation => operation
.Type(HttpVerbs.Post)
.Action("Read", "DocumentExplorer", new { groupId = ViewBag.GroupId }));
ds.Destroy(operation => operation
.Type(HttpVerbs.Post)
.Action("Delete", "DocumentExplorer", new { groupId = ViewBag.GroupId }));
ds.Create(operation => operation
.Type(HttpVerbs.Post)
.Action("Create", "DocumentExplorer", new { groupId = ViewBag.GroupId }));
ds.Update(operation => operation
.Type(HttpVerbs.Post)
.Action("Update", "DocumentExplorer", new { groupId = ViewBag.GroupId }));
})
.InitialView("grid")
.UploadUrl("Upload", "DocumentExplorer", new { groupId = ViewBag.GroupId })
.Draggable(true)
.Toolbar(tb => tb.Items(items =>
{
items.Add().Type("button").Text("").Command("NavigateToRoot").HtmlAttributes(new { title = "Go to Root" }).Icon("home");
}))
.Events(e => {
e.Open("downloadFile");
e.Execute("onExecute");
e.Navigate("onNavigate");
e.DataBinding("onDataBinding");
e.DataBound("onDataBound");
e.Drop("onDrop");
})
)
I'm using the events mostly for troubleshooting this issue, so they just output the received event/data. That being said, the onDrop is not being called. Any help with figuring out why this happens will be greatly appreciated.
Thanks,
-Carlos