local document attachment

15 views
Skip to first unread message

Brett Harrison

unread,
Feb 26, 2015, 1:19:53 PM2/26/15
to mobile-c...@googlegroups.com
Is there a way to have a local document with attachments?

Jens Alfke

unread,
Feb 26, 2015, 1:37:51 PM2/26/15
to mobile-c...@googlegroups.com

> On Feb 26, 2015, at 10:19 AM, Brett Harrison <brett.h...@zyamusic.com> wrote:
>
> Is there a way to have a local document with attachments?

No. Local documents are just simple JSON containers. When they’re used, which is rarely in my experience, they’re just for storing little bits of local state. You could always Base64-encode the attachment and add it as a property.

If you need to store local-only data and get all the regular document features like attachments, revisions and views, you can always create another database and just never replicate it.

—Jens
Reply all
Reply to author
Forward
0 new messages