feedback
Oct 29 2004

FTB Image Gallery Demo

by John Dyer

I put up a demo of FreeTextBox 3.0's image gallery control (it's the image button on the last toolbar). You can:

  • navigate up and down directories
  • set all major image properites
  • upload images
  • create folders

The main property you need to set it is FreeTextBox.ImageGalleryPath. It uses .NET notation, so “/images“, “images“, and “~/images“ may all point to different places.  Please read up on ResolveUrl().

The other property is ImageGalleryUrl which tells FTB where the file ftb.imagegallery.aspx resides. It defaults to “ftb.imagegallery.aspx?rid={0}&cid={0}“. The {0} are replaced by ImageGalleryPath on the client side.

 

Oct 28 2004

FTB 3.0 Image Gallery

by John Dyer

I'm rebuilding the image gallery for FTB 3.0. It was a part of FTB 1.x, but in 2.x I took it out due to security concerns. Anyone could type in the URL http://www.mysite.com/ftb.gallery.aspx?cid=/images/ and upload malicious content or delete important images (this happened on freetextbox.com several times).

For 3.0 I'm encapsulating the image gallery into a control and including some properties for setting the permissions of the gallery based on roles. This way, the gallery can be controlled not only by the on the given form, but programmatically on the gallery.aspx page based on whatever application is employing it. ASP.NET Forums, DNN, and other apps can setup their own permissions controls.

This is really the last task for 3.0 release, so wish me luck.