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

Can FIleManger display files stored outside of the application root?

2 Answers 69 Views
FileManager
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 16 Mar 2021, 06:01 PM

I have an MVC application running on the C: drive of my web server.  I need to access files on the same machine, but a different drive, located at D:\Files.

I can't find an example of how this is accomplished.  The FileManager demo uses the application content folder for file storage, so that is not much help in this instance.  I've searched this forum, google and SO but I can't find a working example of how this is accomplished.  Most of the answers I've found simply point back to the FileManger demo without any explanation.

I would certainly appreciate any insight you can provide for this topic.

Thanks!

2 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 19 Mar 2021, 02:44 PM

Hello, Jason,

Indeed we don't have a published example in the matter, however, In order to achieve a specific binding, you change the virtual mapping in the controller to static ones: https://demos.telerik.com/aspnet-mvc/filemanager (see ViewSource tab -> FileManagerDataController.cs)

The example above is using virtual mapping and absolute URLs, in order to utilize the storage of the project itself. That said, you would need to change accordingly the paths from the controller, in order to achieve the needed local binding.

Hope this would help. Let me know should you face any difficulties in the implementation process.

Regards,
Nencho
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

0
Jason
Top achievements
Rank 1
answered on 23 Mar 2021, 11:59 AM
Thank you for your reply, Nencho, I appreciate the help.  Have a great day.
Tags
FileManager
Asked by
Jason
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Jason
Top achievements
Rank 1
Share this question
or