FreeTextBox

The no. 1 free ASP.NET HTML Editor.
Welcome to FreeTextBox Sign in | Join | Help
in Search

Setting a root directory for Image Gallery

Last post 07-09-2008, 12:10 PM by homeskillet. 2 replies.
Sort Posts: Previous Next
  •  07-07-2008, 11:01 PM 9275

    Setting a root directory for Image Gallery

    I am using version 3.1.6 and have found a great deal of info. about bugs related to the Image Gallery feature in this forum. Thanks to all who have shared their knowledge and experiences. I am running  into a problem, however, that I cant seem to resolve.

    The image gallery code on my form looks like this:
    <FTB:ImageGallery id="ImageGallery1" RootImagesFolder="~/images/specials/"
                AllowImageDelete="true" AllowImageUpload="true" AllowDirectoryCreate="false" AllowDirectoryDelete="false" runat="Server" />


    I figured that by setting the RootImagesFolder property to a directory within my web app, that would be a way to restrict the "highest level" that a user could browse to and upload images to or delete images from. Problem is, it doesn't seem to work. Despite this property being set, the image gallery opens with a default view to the application root folder. I don't want the user to be able to delete images or upload images to the application root, or even to the "images" folder itself.

    Any thoughts or suggestions?
  •  07-08-2008, 4:59 AM 9276 in reply to 9275

    Re: Setting a root directory for Image Gallery

    You could try removing the RootImagesFolder property from the ImagesGallery and instead set the ImageGalleryPath property on your FreeTextBox to "~/images/specials/"
  •  07-09-2008, 12:10 PM 9279 in reply to 9276

    Re: Setting a root directory for Image Gallery

    Ah-hah! Worked like a charm.
    Thank you so much for the help, drifter!
View as RSS news feed in XML
www.freetextbox.com