exploring local resources

2 posts, 0 answers
  1. Marcelo
    Marcelo avatar
    1 posts
    Member since:
    Oct 2011

    Posted 23 Oct 2011 Link to this post

    is there any method for acces to local folders/files with this control or other?
  2. Dobromir
    Dobromir avatar
    1633 posts

    Posted 24 Oct 2011 Link to this post

    Hi Marcelo,

    If I understand you correctly you need to list files from the client's computer. If this is the case, I will have to disappoint you. It is not possible to access user's local hard drive using JavaScript. This is not a restriction of RadFileExplorer but is a general JavaScript security restriction.

    RadFileExplorer can be used to list physical directories that resides on the web server, or on a cloud server or even a file structure stored in a database, but to be able to list these files and / or manipulate them the web server which is running the website need to have the correct permissions.

    If this is not the case, and you need to list files from a server, but not from the client's hard drive, RadFileExplorer offers the possibility to use different (custom) content provider to fulfill the requirements for the specific storage. You can find a detailed information on how to implement custom content provider in the following Live Demo and help article:
    FileExplorer / Custom File Content Provider
    Using custom FileBrowserContentProvider

    Also, you can find various content providers in KnowledgeBase and CodeLibrary sections of your site.

    Best wishes,
    the Telerik team
    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 their blog feed now
Back to Top