This is a migrated thread and some comments may be shown as answers.

Folder navigation issue

3 Answers 67 Views
FileManager
This is a migrated thread and some comments may be shown as answers.
Responsive
Top achievements
Rank 1
Veteran
Responsive asked on 21 Jan 2021, 10:19 PM

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");
    }))
)

3 Answers, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 25 Jan 2021, 02:45 PM

Hi, Responsive,

I've just sent you a reply in the Support ticket that discusses the same topic as the current one.

To keep the communication consistent, let's continue it in the private support thread. 

Regards,
Petar
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/.

0
Brent
Top achievements
Rank 1
answered on 02 Mar 2021, 06:20 PM

Hey Petar,

So, what was the solution?  I am having the same issue.

Thanks.

0
Petar
Telerik team
answered on 04 Mar 2021, 09:41 AM

Hi Brent,

What I've done in the support ticket is to send Responsive the attached project and ask for a comparison of the provided example and the implementation on their end. 

The issue was related to a backslash that was missed but I don't have more details I can share.

What you can do is compare the attached example to the FileManager's implementation in your app. Thus you may identify what is the reason for the error that you get. To run the project, you will have to add the Kendo.MVC DLL file in the lib folder of the provided example.

If the projects' comparison doesn't resolve your issue, to be able to help you, I will need a runnable example in which the error that you get can be replicated. Send me such a project and I will furhter investigate the reason for the unexpected behavior.  

Regards,
Petar
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/.

Tags
FileManager
Asked by
Responsive
Top achievements
Rank 1
Veteran
Answers by
Petar
Telerik team
Brent
Top achievements
Rank 1
Share this question
or