insert image in dynamic directories

Last post 10-11-2011, 7:15 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  10-11-2011, 2:07 AM 70336

    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
     
     
  •  10-11-2011, 7:15 AM 70338 in reply to 70336

    Re: insert image in dynamic directories

    Hi hilla1610 ,
     
     "c:\windows\temp " is the upload function temp directory, please ensure that your site has the write/read permission of this folder.
     
    Regards,
     
    Ken
View as RSS news feed in XML