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

How can I migrate from HasManyFileManager to FileDataObjectManager


Go to End


1349 Views

Avatar
david_nash

Community Member, 55 Posts

10 August 2010 at 5:01pm

I created a website for a client about a year ago, using the HasManyFileManager to allow them to attach PDFs to pages of their site.

Well the site is growing and I'd like to update to the latest silverstripe. The problem is that they have maybe 100 pages and each page has 2 or 3 files attached to it.

How can I migrate the file attachments from HasManyFileManager to FileDataObjectManager? I don't want to have to look through each page and attach the same files manually - is there any way I could automate it?