Hi,
I'm setting my image path locations dynamically in code.
I create a folder according to the current month and year and set it as my UploadPath. and set the root of the folder i create as the Image and Delete paths.
The problem is that i can upload to the directory specified but i cannot navigate to the directory I set as the Image path. So if my upload path is \images\2008\07 i am only able to navigate to the 2008 folder. The paths are located in another virtual directory in my localhost.
I'm currently using RadEditor Ver 7.0.0.0
Please see code below:
I'm setting my image path locations dynamically in code.
I create a folder according to the current month and year and set it as my UploadPath. and set the root of the folder i create as the Image and Delete paths.
The problem is that i can upload to the directory specified but i cannot navigate to the directory I set as the Image path. So if my upload path is \images\2008\07 i am only able to navigate to the 2008 folder. The paths are located in another virtual directory in my localhost.
I'm currently using RadEditor Ver 7.0.0.0
Please see code below:
string[] path = { ConfigurationManager.AppSettings["ImageAssets"] }; | |
string[] dir = { Server.MapPath(path[0]) + "\\" + DateTime.Now.Year.ToString() + "\\" + DateTime.Now.ToString("MM") }; | |
if (!System.IO.Directory.Exists(dir[0])) | |
{ | |
System.IO.Directory.CreateDirectory(dir[0]); | |
} | |
FullTextEditor.ImagesPaths = path; | |
FullTextEditor.DeleteImagesPaths = path; | |
path[0] = path[0]+ "\\" + DateTime.Now.Year.ToString() + "\\" + DateTime.Now.ToString("MM"); | |
FullTextEditor.UploadImagesPaths = path; |