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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Loading Content and Asset data externally via Mysql


Go to End


2 Posts   996 Views

Avatar
luckyluke

Community Member, 1 Post

15 May 2010 at 4:52pm

Hi All,

I am building a site based on Silverstripe 2.3.4. The draft content for site is received via an XML feed from a third party. I am able to create content and add assets via mysql using a cron job. I have 2000+ images loaded via the cron directly into the File table. But for some unknown reason, the asset data gets mysteriously truncated/deleted. I suspect that there is a reference checking being done by SS and it's truncating the remaining files. If that's the case, how do I create the reference so SS leaves the assets intact?

Thanks in advance.

Luke

Avatar
Hamish

Community Member, 712 Posts

18 May 2010 at 12:41pm

You have to make sure that the filename matches exactly and the file object is contained in the appropriate folder objects. if not, the filesystem will be resynced, losing IDs etc.