Setting Gallery Path - working on 5.3, not on 6.2

  •  01-21-2009, 10:41 AM

    Setting Gallery Path - working on 5.3, not on 6.2

    I've used CuteEdit 5.3 on a previous project for content management where a client in the admin subdirectory could upload content that would go to the main website.  This worked fine:

    // Set up editor
    txtEditor.BreakElement = BreakElement.P;
    txtEditor.SetSecurityImageGalleryPath(
    "~/../gfx/uploads");
     
    In CuteEdit 6.2, I'm trying to do the same thing.  I've tried multiple ways of doing it:
     
    string folder = Server.MapPath(".") + \\..\\gfx\\images;
    or
    string folder = "~/../gfx/images";
     
    ...then:
     
    txtPageText.AutoConfigure = AutoConfigure.Full_noform;
    txtPageText.Setting[
    "security:ImageGalleryPath"] = folder;
    txtPageText.Setting[
    "security:MediaGalleryPath"] = folder;
    txtPageText.Setting[
    "security:FlashGalleryPath"] = folder;
    txtPageText.Setting[
    "security:FilesGalleryPath"] = folder;
     
    ...or...

    txtPageText.SetSecurityImageGalleryPath(folder);
    txtPageText.SetSecurityMediaGalleryPath(folder);
    txtPageText.SetSecurityFlashGalleryPath(folder);
    txtPageText.SetSecurityFilesGalleryPath(folder);

    All runs fine, but when I open the gallery (or any dialog box) I get an error message saying "cannot find part of the path "c:\web\<appname>\admin\uploads

    I've also tried commenting out the Configuration\security\*.config entries for ImageGalleryPath, etc, just in case, but my code is consistently being ignored/overridden.

    I'm sure it's something simple, but what am I doing wrong here?
     
    Thanks in advance,
     
    Duncan
View Complete Thread