You can include (base64 encoded) attachment data under _attachments when you post a json document through your update handler.
Note that update handlers are not mandatory and the url rewriter is not a secure mechanism for enforcing access control. You can enable fine-grained per-document *write* security with a validate_doc_update function but no such parallel exists for reads at this time. The usual advice for fine-grained read security is to use different databases for each access domain (commonly known as "database per user"). B. On 22 February 2013 14:37, Александр Опак <[email protected]> wrote: > Can you show more from couch.log file ? > > 2013/2/22 Jeff Charette <[email protected]> > >> Hi everyone, >> >> Has anyone been able to write a update handler that puts attachments on a >> document. I am trying to do per document level security on a couchapp and >> this is the last missing peice as far as I can tell. >> >> Here is more explanation: >> >> http://stackoverflow.com/questions/14991255/couchdb-posting-mutipart-form-to-update >> >> Jeff Charette | Principal >> We Are Charette >> web / identity / packaging >> >> m 415.298.2707 >> w wearecharette.com >> e [email protected]
