sync function and attachment

27 views
Skip to first unread message

Seung Chan Lim

unread,
Oct 12, 2015, 9:22:37 PM10/12/15
to Couchbase Mobile
Is there a way for the sync function to notice that doc has an attachment?

slim

Jens Alfke

unread,
Oct 12, 2015, 9:56:21 PM10/12/15
to mobile-c...@googlegroups.com

On Oct 12, 2015, at 6:22 PM, Seung Chan Lim <djs...@gmail.com> wrote:

Is there a way for the sync function to notice that doc has an attachment?

Yes — it can look at the _attachments property of the doc. It has access to the attachment metadata (name, type, length) but not the contents.

—Jens
Reply all
Reply to author
Forward
0 new messages