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.

Data Model Questions /

Add Image to Dataobject When Its Created


Reply


379 Views

Avatar
okotoker

Community Member, 41 Posts

26 September 2012 at 9:49am

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.