I'm implementing a file manager in an MVC site that works with files located somewhere other than the site. I have got this working fine as long as I stay in the root directory. Trying to change into another directory throws the following error in the console:
Error! Could not navigate to the folder at the requested path(/Message Attachments). Make sure that the parent folder of the target folder has already been loaded.
As changing directories doesn't seem to be triggering anything on the server, I'm at a loss as to how to troubleshoot this.
The code in the view is pretty much right out of the demo at this point:
@(Html.Kendo().FileManager().Name("filemanager") .DataSource(ds => { ds.Read(operation => operation .Type(HttpVerbs.Post) .Action("Read", "Documents") ); ds.Destroy(operation => operation .Type(HttpVerbs.Post) .Action("Destroy", "Documents") ); ds.Create(operation => operation .Type(HttpVerbs.Post) .Action("Create", "Documents") ); ds.Update(operation => operation .Type(HttpVerbs.Post) .Action("Update", "Documents") ); }) .UploadUrl("Upload", "Documents") .Toolbar(tb => tb.Items(items => { items.Add("createFolder"); items.Add("upload"); items.Add("sortDirection"); items.Add("sortField"); items.Add("changeView"); items.Add("spacer"); items.Add("details"); items.Add("search"); })) .ContextMenu(context => context.Items(items => { items.Add("rename"); items.Add("delete"); })))