Jump to:

3433 Posts in 1058 Topics by 734 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Add Image to Dataobject When Its Created

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

Page: 1
Go to End
Author Topic: 322 Views
  • okotoker
    Avatar
    Community Member
    41 Posts

    Add Image to Dataobject When Its Created Link to this post

    I have been trying to figure out how / if I can attach an image to a dataobject before I save it for the first time. I know why I have to save it first but I was playing around with onAfterWrite and onBeforeWrite thinking I could accomplish this that way. I haven't had any luck.

    I used to use DataObjectManager for this in 2.4. Thanks for your help.

    322 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.