insert image in dynamic directories

  •  10-11-2011, 2:07 AM

    insert image in dynamic directories

    hi
    recently we upgrade to 6.6 ,yestarday i uploded all the new client fix files and its look good .
    i edit the web.config module sections with the upload , but it doesnt upload files.
    it used to work in the older version.
     i have for each account is own directory on web server , so if my site is wwwroot/main/MainSite the account folder is on wwwroot/main/123456.
     
    like in the older version iv set the security in the code:

    editorText.SetSecurityAllowCreateFolder(false);
            editorText.SetSecurityAllowDelete(false);
            editorText.SetSecurityAllowDeleteFolder(false);
            editorText.SetSecurityAllowModify(false);
            editorText.SetSecurityAllowMove(false);
            editorText.SetSecurityAllowRename(false);
            editorText.SetSecurityAllowUpload(true);
            editorText.SetSecurityMaxImageSize(2048);

             string virtualPath = "/" + CompanyFolder + "/" + EventFolder + "/";
            string filePath = this.Server.MapPath(virtualPath);
            if (!Directory.Exists(filePath))
                Directory.CreateDirectory(filePath);
          
            editorText.SetSecurityImageGalleryPath(filePath);
            editorText.SetSecurityMediaGalleryPath(filePath);
            editorText.SetSecurityFlashGalleryPath(filePath);
            editorText.SetSecurityFilesGalleryPath(filePath);
            editorText.SetSecurityGalleryPath(filePath);
            editorText.URLType = CuteEditor.URLType.Absolute;
     
     
    im geeting this error :access to the path 'c:\windows\temp' is denied
     
    thanks
     
     
View Complete Thread