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   1407 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, 4096 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, 4096 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?