flimzy opened a new issue #1042: Improve CouchDB's understanding of 
multipart/related PUT requests
URL: https://github.com/apache/couchdb/issues/1042
 
 
   At present, to send a multipart/related PUT request to CouchDB, each 
attachment's length must be known beforehand, to create a JSON body such as:
   
   ```json
   {
     "_id":"doc_id",
     "_attachments":{
       "foo.txt": {
         "content_type": "text/plain",
         "following": true,
         "length": 13
       }
     }
   }
   ```
   
   This defeats part of the benefit of using multipart/related to send 
attachments.
   
   It would be nice if the `length` field could be omitted from the attachment 
stub, and instead inferred from the actual size of the respective part.
   
   This would make it possible to write more efficient client code.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to