Fixtures and mongoose-attachments (file uploads)

39 views
Skip to first unread message

Leon Radley

unread,
Apr 29, 2013, 8:38:25 AM4/29/13
to mongoo...@googlegroups.com
Hi!

I'm using https://github.com/firebaseco/mongoose-attachments to have files attached to my models and would now like to load some fixtures using https://github.com/powmedia/mongoose-fixtures or alike.

It works great with plain json objects. But I'm unsure of how to in the easiest possible way also insert images.

My thought so far is maybe it's possible to do via a virtual setter, but that seems like a hack.

Has anyone done something like this?
Reply all
Reply to author
Forward
0 new messages