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

FileExplorer & Async Upload

1 Answer 60 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Gavin Pollock
Top achievements
Rank 1
Gavin Pollock asked on 06 Sep 2013, 03:48 PM
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

1 Answer, 1 is accepted

Sort by
0
Dobromir
Telerik team
answered on 11 Sep 2013, 07:29 AM
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.
Tags
AsyncUpload
Asked by
Gavin Pollock
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Share this question
or