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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

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   12444 Views

Avatar
marc79

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