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

ImageGallery Always Puts Images in Uploads Folder

Go to End

2 Posts   1167 Views


Community Member, 165 Posts

15 March 2011 at 12:26pm

Edited: 15/03/2011 12:30pm

I'm having all sorts of problems with uploading images with the ImageGallery module.

Basically, it always makes a copy of the images and puts it in the Uploads folder, as well as whatever folder I wanted.

And uses the image from the Uploads folder rather than the one I've uploaded to whatever sub folder in the assets folder.

So I have hundreds of images in the Uploads folder, and there's the strong possibility that, being all in the same folder, files could overwrite each other.

And then, if I try to upload a second image with the gallery, the uploader displays the thumbnails for the image in the sub folder and the image in the Uploads directory. So I'm always seeing twice the number of files that are actually there.

I'm using SS 2.4.3 with the imagegallery 536 with the Uploadify module.

Any idea of how I can fix this?

Is it an uploadify problem or an ImageGallery problem?

James Bolitho

Community Member, 33 Posts

16 March 2011 at 5:47am

Hi _Vince,

I had a similar problem. It is an issue in the FileDataObjectManager.php around line 417. This post solved it for me: