On May 14, 2014, at 9:30 AM, Todd Freese <[email protected]> wrote:

> Does CBL (iOS) store attachments with their original file name? And does it 
> store them in a single directory?

No, and Yes. It stores them in a single directory, named after their SHA-1 
digests. So if you have multiple attachments with the same data, the data's 
only stored once.

> Can I have multiple attachments with the same file name across different 
> documents without having to make sure the file names are unique? For example, 
> doc 1 as a file attachment named "picture.jpg" and document 2 has a different 
> picture named "picture.jpg"

Yes, no problem. The filename is just part of the metadata associated with the 
attachment in the document. CBL doesn't really care what it is.

--Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/0A18BFC0-A33E-4D0A-852D-1ECEDF71C198%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to