Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » DOM - upload folder

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 381 Views
  • Mackodlak
    Avatar
    Community Member
    95 Posts

    DOM - upload folder Link to this post

    hello,

    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!

  • UncleCheese
    Avatar
    4085 Posts

    Re: DOM - upload folder Link to this post

    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: http://www.leftandmain.com

  • Mackodlak
    Avatar
    Community Member
    95 Posts

    Re: DOM - upload folder Link to this post

    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?

    381 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.