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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

File / image upload location


Go to End


5 Posts   2102 Views

Avatar
Aaron Brockhurst

Community Member, 30 Posts

9 September 2009 at 7:34pm

Hi Uncle Cheese

Is there a way to set the file upload location in the dataobjectmanager?

Many thanks
Aaron

Avatar
UncleCheese

Forum Moderator, 4102 Posts

10 September 2009 at 12:18am

$myDOM->setUploadFolder()

Avatar
Aaron Brockhurst

Community Member, 30 Posts

10 September 2009 at 12:23am

Great, just the job, thanks Uncle Cheese

Avatar
Howard

Community Member, 215 Posts

22 September 2009 at 2:13pm

This worked for a dataobjectmanager but when I added it to a ManyManyDOM it errored "Uncaught Exception: Object->__call(): the method 'setuploadfolder' does not exist on 'ManyManyDataObjectManager'"

Any chance that we could get it added to the ManyManyDOM?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

22 September 2009 at 3:51pm

Edited: 22/09/2009 3:52pm

You can only set an upload folder on FileDataObjectManager and its subclasses. Maybe you want ManyManyFileDataObjectManager?