RadFileExplorer Upload Problem

2 posts, 0 answers
  1. Thomas Moritz
    Thomas Moritz avatar
    1 posts
    Member since:
    Dec 2009

    Posted 01 Mar 2010 Link to this post

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

  2. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 04 Mar 2010 Link to this post

    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.
Back to Top