File Manager for a Shared Drive

3 posts, 0 answers
  1. Frank
    Frank avatar
    86 posts
    Member since:
    Mar 2012

    Posted 25 Mar 2014 Link to this post

    I have an application that will exist on one iis server but I want it to display files from a shared drive on a separate server.  The other issue is I only want to display subfolder based on the user and what the users has selected to view. They will be read only for the directory

    ​string jobId = Request.QueryString["jobId"];
    string path = @"\\servernamel\FileManager\" + jobId + @"\subfolder\";
    string[] folder = { path };
    RadFileExplorer1.Configuration.ViewPaths = folder;
    RadFileExplorer1.Configuration.SearchPatterns = new[] { "*.*" };
    RadFileExplorer1.Configuration.ContentProviderTypeName = typeof(CustomFileSystemProvider).AssemblyQualifiedName;

    I have followed the link
    http://www.telerik.com/support/kb/aspnet-ajax/fileexplorer/details/use-radfileexplorer-with-physical-and-shared-folder-s-paths

    but I have had no success in displaying the files in the shared folder.

    I am assuming I have to change the MappingFile.mapping to
    <?xml version="1.0" encoding="utf-8" ?>
    <CustomFileBrowserProvider>
    <Paths>
    <genericHandlerPath>FileSystemHandler.ashx</genericHandlerPath>
    </Paths>
    <Mappings>
    <Mapping>
    <PhysicalPath>
    <![CDATA[\\servername\FileManager\"]]>
    </PhysicalPath>
    <VirtualPath><![CDATA[MyCusomRootDir/]]></VirtualPath>
    </Mapping>
    </Mappings>
    </CustomFileBrowserProvider>


  2. Frank
    Frank avatar
    86 posts
    Member since:
    Mar 2012

    Posted 25 Mar 2014 in reply to Frank Link to this post

    Ok I have found the error in the code, but now the final folder shows up twice in the File Explorer.
    once as
    VirtualFileManager/subfolder/Client/
    and as
    VirtualFileManager\subfolder\Client/
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vessy
    Admin
    Vessy avatar
    1389 posts

    Posted 28 Mar 2014 Link to this post

    Hello Frank,

    I am afraid that the provided information was not enough for us to reproduce the issue and determine what is causing it. Could you, please, try to isolate the problem into a sample fully runnable project and send it for a further investigation? could you also verify that you are using the content provider from the linked code library without any additional modifications?

    Regards,
    Vessy
    Telerik
     

    Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

     
Back to Top