couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samuel Williams <space.ship.travel...@gmail.com>
Subject Bug in attachments?
Date Sun, 14 Oct 2012 02:08:56 GMT
Hi,

I don't know much about erlang but there appears to be a bug in the inline
attachments functionality:

http://pastie.org/5055155

I just try to upload the following doc:

document = {
"_attachments" => {
"foo.txt" => {
"content_type" => "text\/plain",
"data" => "Hello World"
}
}
}

data gets encoded using base64.

>From the erlang shell:

27> base64:decode(<<"SGVsbG8gV29ybGQ=">>, []).
** exception error: undefined function base64:decode/2

Kind regards,
Samuel

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message