Upload window not showing, upload option grayed out

2 posts, 1 answers
  1. fred williams
    fred williams avatar
    55 posts
    Member since:
    Feb 2010

    Posted 03 Nov 2010 Link to this post

    Is there something I should be doing in codebehind or some setting I need to enable to allow uploads through fileexplorer? The upload button isn't clickable; it's grayed out, and if I hover over it it just shows "mylink.aspx#". What am I doing wrong

    Do I have to create another radwindow with a radupload control in it?

           <telerik:RadFileExplorer ID="expTest" runat="server"  VisibleControls="All"
                Configuration-ViewPaths="~/Images" DisplayUpFolderItem="true" EnableCopy="true"
                EnableCreateNewFolder="true" Skin="Black" Configuration-UploadPaths="~/Up"
                EnableOpenFile="true" OnClientItemSelected="itemChosen">
    <Configuration ViewPaths="~/Images" SearchPatterns="*.*" UploadPaths="~/Up"></Configuration>
  2. Answer
    Fiko avatar
    1406 posts

    Posted 08 Nov 2010 Link to this post

    Hi Fred,

    I see that you use an Upload path which is not child (or the same as the ViewPaths) of the path(s) set to the ViewPaths property. Please note that, however, by default this scenario is not supported and you need to do some extra work in order to achieve the desired result. You need to implement a custom FileBrowserContentProvider and, at least, override its CheckUploadPermission and StoreFile methods in order to achieve the desired result.

    The better solution in your case is to set the upload paths to be the same as ViewPaths. Subclass the default provider (Telerik.Web.UI.Widgets.FileSystemContentProvider) and override its StoreFile method in order to save the file to another location than the one shown in the FileExplorer control.

    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