7913 Posts in 1355 Topics by 930 members
DataObjectManager Module
SilverStripe Forums » DataObjectManager Module » Uploadify: set Upload Folder
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba, simon_w
| Go to End | ||
| Author | Topic: | 4162 Views |
-
Re: Uploadify: set Upload Folder

9 September 2010 at 1:50am
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: http://www.leftandmain.com
| 4162 Views | ||
| Go to Top |
