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

Access a local drive in control

2 Answers 55 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Merin
Top achievements
Rank 1
Merin asked on 30 Jul 2013, 08:31 AM
Hi folks

There is a radfileexplorer in my webpage which works ok but I am trying to display a local disk also in that control. Given physical path like  D:\  but in vain. What can I do to achieve this?

Thanks
Merin

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 30 Jul 2013, 09:30 AM
Hi Merin,

The default content provider of the file explorer control only works with files and folders from the current web application. You cannot access files on another computer or on a different drive.

What you can do in this case is open the IIS configuration and create a virtual folder in your web application, which points to the files on the local drive. Make sure that the appropriate ASP.NET windows user has permissions to at least read the files on the local drive folder. Otherwise you might see "access is denied" errors when you try to browse with the file explorer control.

Thanks,
Shinu.
0
Vessy
Telerik team
answered on 30 Jul 2013, 02:23 PM
Hello Merin,

Just in addition to the Shino's answer - another possible option to list physical paths' content in RadFileExplorer is to implement a custom content provider, ensuring that all permissions to the pointed folders are set correctly. A sample implementation of such a provider is available in this KB article: Use RadFileExplorer with physical and shared folder's paths

Kind Regards,
Veselina Raykova
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
FileExplorer
Asked by
Merin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or