FileExplorer & Async Upload

2 posts, 0 answers
  1. Gavin Pollock
    Gavin Pollock  avatar
    62 posts
    Member since:
    Jan 2005

    Posted 06 Sep 2013 Link to this post

    Hello guys,

    I am trying to activate the asyncupload feature in the FileExplorer. I can see that the file has been uploaded correctly inside the "App_Data/RadUploadTemp" folder but for some reason the functionality doesn't copy the file over the destination path. 

    Do you have any suggestion about this?

    This is the ascx file:
    <telerik:RadFileExplorer runat="server" ID="FileExplorer1" Width="600px" Height="350px" Skin="WebBlue"
            OnClientItemSelected="OnClientItemSelected"
            ExplorerMode="Thumbnails" CssClass="rfeLargeThumbnails galleryContainer"
            OnItemCommand="RadFileExplorer1_ItemCommand"
            EnableOpenFile="true"
            OnClientMove ="OnExplorerMoveHandler">
     
        </telerik:RadFileExplorer>
    And the code behind:
    protected override void OnInit(EventArgs e)
    {
        FileExplorer1.Configuration.ContentProviderTypeName = typeof(CMSFileSystemContentProvider).AssemblyQualifiedName;
        FileExplorer1.TreeView.EnableDragAndDrop = false;
        FileExplorer1.Grid.ClientSettings.AllowRowsDragDrop = false;
        
        base.OnInit(e);
     
        if (WebConfigurationManager.AppSettings["Gallery.Path"] != null)
        {
            initialPath = WebConfigurationManager.AppSettings["Gallery.Path"].ToString();
        }
     
        FileExplorer1.Configuration.SearchPatterns = new string[] { "*.jpg", "*.jpeg", "*.gif", "*.png" };
        FileExplorer1.Configuration.MaxUploadFileSize = 2097152; //2MB
     
        FileExplorer1.Configuration.ViewPaths = new string[] {initialPath};
        FileExplorer1.Configuration.UploadPaths = new string[] { initialPath };
        FileExplorer1.Configuration.DeletePaths = new string[] { initialPath };
         
        FileExplorer1.Configuration.EnableAsyncUpload = true
    }

    Thanks,

    Gavin
  2. Dobromir
    Admin
    Dobromir avatar
    1633 posts

    Posted 11 Sep 2013 Link to this post

    Hi Gavin,

    In the provided sample code there is a handler attached to the ItemCommand event of RadFileExplorer but the related code is missing. I have tested the provided configuration without this handler but was not able to reproduce the problem. Could you please open a formal support ticket and provide a sample fully runnable project reproducing the issue, so we can examine and debug it locally?

    Regards,
    Dobromir
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top