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

DOM and Uploadify image not attaching

Go to End

25 Posts   8104 Views


Community Member, 65 Posts

1 May 2013 at 10:05am

I'm now having these issues. Strange thing is this was working and now it's stopped. Annoyingly I'd made quite a few changes to the site before I noticed the issue.

I had everything working fine with two instances of Uploadify both using MultipleImageUploadField. I then made some other changes to the site trying implementing a light box for my galleries, Colorbox.

Next up was adding in another instance of Uploadify for uploading pdf files. It was only after I added this that I noticed the issues with the uploads not attaching to the page.

This is my code for the FileUploadField added in last:

function getCMSFields() {
$fields = parent::getCMSFields();

$fields->addFieldToTab('Root.Content.Main', $FileType = new FileUploadField('MenuFile','File'),'Content');
$FilesField->allowFolderSelection = false;

return $fields;

I'm not sure what might have caused this to stop all of a sudden or at what point between it working and discovering it had stopped functioning correctly that things went wrong.

I've tried all the suggestion posted so far with no luck. Any help would be greatly appreciated. I'm on Silverstripe 2.4.7

Go to Top