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.
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.
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.