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

Image Manager Upload Disabled

2 Answers 46 Views
Editor
This is a migrated thread and some comments may be shown as answers.
William
Top achievements
Rank 1
William asked on 24 Aug 2011, 04:14 PM
Hi Guys,
I'm dynamicly setting the DeletePaths, UploadPaths and ViewPaths based on some users credentials with the following code:

 

 

Dim viewImages As String() = New String() {"~/Images/" & ddMenuName.SelectedValue}

 

 

 

Dim uploadImages As String() = New String() {"~/Images/" & ddMenuName.SelectedValue}

 

 

 

Dim deleteImages As String() = New String() {"~/Images/" & ddMenuName.SelectedValue}

 

 

 

If Not IsPostBack Then

 

    RadEditor1.ImageManager.ViewPaths = viewImages

    RadEditor1.ImageManager.UploadPaths = uploadImages

    RadEditor1.ImageManager.DeletePaths = deleteImages

 

 

End If

This works very good, however the upload button is disabled. What am I doing wrong here?

 

2 Answers, 1 is accepted

Sort by
0
William
Top achievements
Rank 1
answered on 24 Aug 2011, 04:43 PM
If I remove the dynamic portion of the code, the upload button is enabled for the root level (in this case the "Images" folder). However, what I trying to achieve is to go to a specific folder under "Images" such as "Images/HR" based on users credentials.
0
Rumen
Telerik team
answered on 26 Aug 2011, 11:19 AM
Hello William,

Your code looks fine and you should not experience the reported problem if the images in the "Images/HR" folder are read by the ViewPaths property and listed in the Image Manager dialog.

Does the problem happen if you set the paths inline?

You can find information about setting paths in the following help article: http://www.telerik.com/help/aspnet-ajax/editor-setting-folders-enforcing-roles.html



Best regards,
Rumen
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Editor
Asked by
William
Top achievements
Rank 1
Answers by
William
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or