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, Ed, biapar, Willr, Ingo, swaiba

DOM - upload folder

Go to End

3 Posts   725 Views


Community Member, 95 Posts

29 September 2011 at 8:47pm


I'm using a regular DOM and I wanna change the upload folder, how would I do it?
I've seen that for FDOM it's easy... if $manager is FDOM manager then you just say $manafer->setUploadFolder("something"); but that method doesn't work for DOM, so what does?

Thank you!


Forum Moderator, 4102 Posts

30 September 2011 at 4:56am

I'm confused. DOM doesn't have an uploader, so why would you want to set the upload folder?

SilverStripe tips, tutorials, screencasts and more:


Community Member, 95 Posts

30 September 2011 at 7:59pm

I have a DataObject that has 4 file upload fields/whatever. I am using DOM to handle the object, and it works (you said in another subject that using FDOM with multiple single file uploads is tricky or whatever, that I should use regular DOM). Now it all works, except that it chose /assets/uploads as default folder to upload files to, and I want it to be /assets/challenges.
Can you tell me how or can't it be done?