Image Manager can see files, folder, and files in folders. It can also edit any Image and save it successfully. Only problem is uploading. Always get "Access to path is denied" on production server. Local running everything works. Doesn't make sense that I can edit a file that already exists and save it as a new one, but I cannot upload one. Thanks for any help.
I have a 2012 server, ApplicationPoolIdentity. Created a folder on the server and created a Virtual Directory to it. Gave Everyone Full permissions until I can get it working then will narrow down. Code to set path is here...
string path = "~/emailAssets/" + "test";
DebugHandler.DebugMessage = "Checking and Creating Directory: " + path;
try
{
if (!Directory.Exists(Server.MapPath(path)))
Directory.CreateDirectory(path);
}
catch { throw new Exception("Could not access or create Email Assets directory. Images and Documents will not be available"); }
string[] paths = new string[] { path };
// Setup RadEditor
tbBody.ImageManager.EnableAsyncUpload = true;
tbBody.ImageManager.ViewPaths = paths;
tbBody.ImageManager.UploadPaths = paths;
tbBody.ImageManager.DeletePaths = paths;