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

File Manager for a Shared Drive

2 Answers 195 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 25 Mar 2014, 05:12 PM
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 Answers, 1 is accepted

Sort by
0
Frank
Top achievements
Rank 1
answered on 25 Mar 2014, 06:11 PM
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/
Radboy1986
Top achievements
Rank 1
commented on 22 Jun 2022, 11:50 AM

I know this has been a while but what was the error may I ask? I am working on the same type of scenario but my shared folder will not appear in the file explorer, only the physical per article: https://docs.telerik.com/devtools/aspnet-ajax/knowledge-base/editor-use-radfileexplorer-with-physical-and-shared-folder-s-paths

Regards!

Radboy1986
Top achievements
Rank 1
commented on 22 Jun 2022, 01:19 PM | edited

.
0
Vessy
Telerik team
answered on 28 Mar 2014, 02:24 PM
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.

 
Tags
FileExplorer
Asked by
Frank
Top achievements
Rank 1
Answers by
Frank
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or