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>
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>