Access a local drive in control

3 posts, 0 answers
  1. Merin
    Merin avatar
    14 posts
    Member since:
    Jul 2013

    Posted 30 Jul 2013 Link to this post

    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?

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Jul 2013 Link to this post

    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.

  3. DevCraft R3 2016 release webinar banner
  4. Vessy
    Vessy avatar
    1351 posts

    Posted 30 Jul 2013 Link to this post

    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
    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.
Back to Top