Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Uploadify: set Upload Folder

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1 2
Go to End
Author Topic: 5433 Views
  • UncleCheese
    Avatar
    4085 Posts

    Re: Uploadify: set Upload Folder Link to this post

    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

    5433 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.