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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

How can I migrate from HasManyFileManager to FileDataObjectManager


Reply


588 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?