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

RadFileExplorer Upload Problem

1 Answer 163 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Thomas Moritz
Top achievements
Rank 1
Thomas Moritz asked on 01 Mar 2010, 08:36 PM

I have been trying to two days now to get the file upload portion of the RadFileExporer to work to no avial.

Here is my senerio:
I have a VD pointing to a share on another server that I am accessing when first loading.  I have an "Uploads" directory that I am trying to allow users to upload to. Access to the share at this point have been given full access.  I can view the files on the share within RadFileExplorer no problem but I cannot upload to them.  When I try and swtich to the "Uploads" directory within the site and then select "Upload" its grayed out.

Any help would be so greatly appreciated!!
Thomas

 

Dim

 

explorerControls As Telerik.Web.UI.FileExplorer.FileExplorerControls = 0

 

Dim paths As String() = New String() {"~/Intern"}

 


Dim
uploadPaths As String() = New String() {"~/Intern/Uploads"}

 

 

'This code sets RadFileExplorer's paths

 

 

 

 

RadFileExplorer1.Configuration.ViewPaths = paths

RadFileExplorer1.InitialPath = Page.ResolveUrl(

"~/Intern/")

 

RadFileExplorer1.Configuration.UploadPaths = uploadPaths

explorerControls = explorerControls

Or Telerik.Web.UI.FileExplorer.FileExplorerControls.Toolbar

 

RadFileExplorer1.EnableCreateNewFolder =

"true"

 

 

 

RadFileExplorer1.Configuration.SearchPatterns = New String() {"*.*"}

 

RadFileExplorer1.Configuration.ContentProviderTypeName = GetType(Telerik.Web.UI.Widgets.FileSystemContentProvider).AssemblyQualifiedName

 

RadFileExplorer1.DataBind()

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 04 Mar 2010, 02:28 PM
Hi Thomas,

I suppose that the problem that you experience is due a bug in the 2009.3 1314 version of the RadFileExplorer control. The problem occurs when the InirtialPath property is set before setting other configuration properties of the control. We already fixed the issue and  the changes are available in the recent BETA release of the control. If you choose to use the recent official release, then you need to move the InitialPath assignment after all configuration settings of the RadFileExplorer control:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        Dim explorerControls As Telerik.Web.UI.FileExplorer.FileExplorerControls
 
        Dim paths As String() = New String() {"~/Intern"}
        Dim uploadPaths As String() = New String() {"~/Intern/Uploads"}
 
        'This code sets RadFileExplorer's paths
        RadFileExplorer1.Configuration.ViewPaths = paths
        RadFileExplorer1.Configuration.UploadPaths = uploadPaths
        explorerControls = explorerControls Or Telerik.Web.UI.FileExplorer.FileExplorerControls.Toolbar
        RadFileExplorer1.EnableCreateNewFolder = "true"
        RadFileExplorer1.Configuration.SearchPatterns = New String() {"*.*"}
        RadFileExplorer1.Configuration.ContentProviderTypeName = GetType(Telerik.Web.UI.Widgets.FileSystemContentProvider).AssemblyQualifiedName
 
        RadFileExplorer1.InitialPath = Page.ResolveUrl("~/Intern/")
 
        ' This does not work in RadFileExplorer:
        '  RadFileExplorer1.DataBind()
    End Sub

I hope this helps.

Kind regards,
Fiko
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
FileExplorer
Asked by
Thomas Moritz
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or