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

Razor FileManager RootPath

1 Answer 163 Views
FileManager
This is a migrated thread and some comments may be shown as answers.
Harry Anderson
Top achievements
Rank 1
Harry Anderson asked on 11 Mar 2021, 07:14 PM

Razor FileManager RootPath

 

How do I set the RootPath in the Core FileManager to use an Uploads folder that already exists?  Is this done in the cshtl page of the cshtml.cs page?  

 

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 16 Mar 2021, 11:21 AM

Hello Harry,

You can do that in the code behind - in the cshtml.cs file. By setting up the ContentPath property. Here you are an example: 

https://github.com/telerik/ui-for-aspnet-core-examples/tree/master/Telerik.Examples.RazorPages/Telerik.Examples.RazorPages/Pages/FileManager

Regards,
Ianko
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
Harry Anderson
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or