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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Disable UploadFolderSelection

Go to End

2 Posts   1377 Views


Community Member, 7 Posts

8 February 2011 at 2:57pm

Edited: 08/02/2011 2:58pm

As far as I can see, there is no way to disable 'allowUploadFolderSelection' in the FileDataObjectManager class. The default init value is 'true' and the allowUploadFolderSelection() method sets it to true as well.

Locally, I have changed the allowUploadFolderSelection() method to

public function allowUploadFolderSelection($allow = true) {
    $this->allowUploadFolderSelection = $allow;

and this seems to do the job. Would be great if you could implement something similar. I basically just don't want the editors to fool around with the folders.


Community Member, 20 Posts

10 February 2011 at 5:15am

I was going to do a post about this ...