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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

ImageDataObjectManager - unable to add existing image

Go to End



Community Member, 75 Posts

6 July 2011 at 1:48am

Edited: 06/07/2011 1:50am

Hi guys,

I have the following setup:

- A ContentPage has_many ContentImage
- A ContentImage has_one ContentPage

I'm using IDOM to manage the images, which works fine when I upload new images. However, when I try to add an image which I've already added using the "Files and Images" tab, it won't work.

Here's what I do:

- Upload a new image using "Files and Images". This image isn't linked to a ContentPage yet
- Go to my content page, and try to attach the image using IDOM -> Add file -> Choose Existing
- I select the folder, it shows all the images in that folder
- I check the checkbox next to the image I've just uploaded and click "Import"
- Uploadify says 'added files successfully' (Ajax Response 1 below)
- I click continue, the spinning wheel appears but no images display or are attached to the page, no errors in the ajax response, just the HTML to render the image table.

The ajax response doesn't show any errors. I would really appreciate some help with this.

Ajax Response 1:

ImportFiles[]	168
SecurityID	fd2a74907161ada2f327b9447766beed7a6c3261
UploadFolderID_ImageDataO...	1
UploadedFiles[]	168
action_saveUploadifyForm	Continue