benoitc / couchbeam

Apache CouchDB client in Erlang
Other
242 stars 114 forks source link

support for multiple attachment #21

Closed sendtopms closed 13 years ago

sendtopms commented 14 years ago

Can you please add support for multiple files attachement at single http call? put_attachment(Db, DocId, ListofX)

where ListofX would be list of tuple of {Content, AName, Length, ContentType} Here Length is mere redundant as it is the size of the Content. I just borrowed from existing API. Possible use cases,

  1. Mutile file attachment from client, adds multiple photos in single http call using multipart
  2. Item list - Single Image with multiple size for thumbnail, normal and or original etc
benoitc commented 14 years ago

why not use inline attachments ? Not that I'm against this, just asking :)

benoitc commented 13 years ago

no answer. closing issue