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

File / image upload location


Reply

5 Posts   1359 Views

Avatar
Aaron Brockhurst

9 September 2009 at 7:34pm Community Member, 30 Posts

Hi Uncle Cheese

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

Many thanks
Aaron

Avatar
UncleCheese

10 September 2009 at 12:18am 4085 Posts

$myDOM->setUploadFolder()

Avatar
Aaron Brockhurst

10 September 2009 at 12:23am Community Member, 30 Posts

Great, just the job, thanks Uncle Cheese

Avatar
Howard

22 September 2009 at 2:13pm Community Member, 215 Posts

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

22 September 2009 at 3:51pm (Last edited: 22 September 2009 3:52pm), 4085 Posts

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