Traversing through Image Folder Path.

Last post 05-21-2008, 3:13 PM by techno.email. 2 replies.
Sort Posts: Previous Next
  •  05-21-2008, 2:42 PM 40645

    Traversing through Image Folder Path.

    Hi,
     
     
    I'm having an issue with traversing through the folders after assigning the image folder path to editor.
     
    Actual Folder Structure:
     
    ~/uploadedImages/Sports/Baseball/   (uploadedImages folder contains Sports folder which contains Baseball folder)
    ~/uploadedImages/Sports/Football/    (uploadedImages folder contains Sports folder which also contains Football folder)
     
    One of the requirement is when the users click "Insert Image", users should to be taken to "~/uploadedImages/Sports/Baseball" by default, so i set the editor path to:
     
    editor.SetSecurityImageGalleryPath("~/uploadedImages/Sports/Baseball");
     
    Now when the users click "Insert Image" they are taken to the correct folder but then they CANNOT traverse to the folders above that. In the above example the users cannot traverse to "~/uploadedImages/Sports/Football/" 
     
    Could somebody please let me know if this is possible? If so, can you please guide me on how to achieve this?
     
    Thanks in advance.
     
  •  05-21-2008, 2:58 PM 40647 in reply to 40645

    Re: Traversing through Image Folder Path.

    techno.email,
     
    If you set editor.SetSecurityImageGalleryPath("~/uploadedImages/Sports/Baseball"), the uer cannot access any folder above it. It's by design.
     
    For your situation, you should use the following path:
     
    editor.SetSecurityImageGalleryPath("~/uploadedImages/Sports/");
     

    Personalization and Programmatic Security Example

     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  05-21-2008, 3:13 PM 40649 in reply to 40647

    Re: Traversing through Image Folder Path.

    Thanks a lot Adam for the quick response.
View as RSS news feed in XML