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

RadEditor Image Manager not working

2 Answers 63 Views
Documentation and Tutorials
This is a migrated thread and some comments may be shown as answers.
Jason
Top achievements
Rank 1
Jason asked on 13 Aug 2014, 07:45 PM
Hello,

I have a RadEditor that is supposed to use the Image Manager that allows them to upload and insert pictures. Here is my code for formatting it from the C# side. The imgPath created is a virtual path.

string imgPath = GenerateOutputDirectory(false);
CreateDirectoryIfNotExist(imgPath);
RadEditor1.ImageManager.ViewPaths = new string [] {imgPath};
RadEditor1.ImageManager.UploadPaths = new string[] { imgPath };
RadEditor1.ImageManager.EnableAsyncUpload = true;
RadEditor1.ImageManager.SearchPatterns = new string[] { "*.jpeg", "*.jpg", "*.bmp", "*.gif", "*.png" };


I create a string that creates the virtual path in imgPath, then if the directory does not exist, I create it so the imgPath exists for sure. Then I attempt to set the View and Upload path of the image manager to have those folders. However, when I open the image manager, this is what I see: (attached .png image)

The way it looks it seems that my paths are not being set. Why is this? The imgPath is the correct virtualPath. 

  

2 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 15 Aug 2014, 07:41 AM
Hi Jason,

The provided configuration seems correct to me and I can only make assumptions why the ImageManager is not loading correctly on your end.

I suggest providing a simple, locally runnable project that demonstrates the implemented logic, so that I could be able to investigate it properly on my end.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Jason
Top achievements
Rank 1
answered on 15 Aug 2014, 05:15 PM
Hello, thanks for the reply. We fortunately fixed the problem. It was a configuration issue on our end. The radeditor was not playing nice with another one of our integrated features. Thanks very much!! I would post the solution but I believe the issue that we fixed was rather unique to our situation and it isn't likely that someone else runs into the same problem. Thanks again.
Tags
Documentation and Tutorials
Asked by
Jason
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Jason
Top achievements
Rank 1
Share this question
or