Coping attachments


#1

I want to copy an attachment from one document to another. Is it valid to just copy the _attachments object from the source? Or must i use the api and effectively copy the raw bytes from one to the other?


#2

Use the API.

This won’t end up increasing storage, because the attachment store is content-addressable, so any unique data blob is only stored once no matter how many docs have a “copy” of it.