Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, biapar, Willr, Ingo, swaiba, simon_w

Uploadify: set Upload Folder


9 Posts   5588 Views


9 September 2010 at 1:50am 4085 Posts

Yeah, this is a very hairy area of the module, since "uploadFolder" serves two purposes. Originally, I was only looking at the $uploadFolder property if allowFolderSelection was on, but that proved problematic in many ways, so that property has been through quite a number of changes.

I also need to create the method setUploadFolder() so we can be sure users aren't including the ASSET_DIR in the path. I believe FileDOM has a way of sanitizing the input.. I'll use that as a reference point.

SilverStripe tips, tutorials, screencasts and more: