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

Upload window not showing, upload option grayed out

1 Answer 62 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
fred williams
Top achievements
Rank 1
fred williams asked on 03 Nov 2010, 04:48 PM
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>
        </telerik:RadFileExplorer>

1 Answer, 1 is accepted

Sort by
0
Accepted
Fiko
Telerik team
answered on 08 Nov 2010, 04:35 PM
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.

Greetings,
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
fred williams
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or