anchor.diff:          throw(Error)
       end;
   
  -db_attachment_req(#httpd{method=Method}=Req, Db, DocId, FileName)
  +
  +db_attachment_req(#httpd{method=Method}=Req, Db, DocId, FileNameParts)
           when (Method == 'PUT') or (Method == 'DELETE') ->
  -
  +    FileName = list_to_binary(mochiweb_util:join(lists:map(fun binary_to_list/1, FileNameParts),"/")),
       NewAttachment = case Method of
           'DELETE' ->
               [];
  
positive.code:         {rev, UpdatedRev}
      ]});
  
  db_attachment_req(Req, _Db, _DocId, _FileName) ->
      send_method_not_allowed(Req, "DELETE,GET,HEAD,PUT").
  
  
  
negative.code: 
  % Attachment request handlers
  
  db_attachment_req(#httpd{method='GET'}=Req, Db, DocId, FileNameParts) ->
      FileName = list_to_binary(mochiweb_util:join(lists:map(fun binary_to_list/1, FileNameParts),"/")),
      case couch_db:open_doc(Db, DocId, []) of
      {ok, #doc{attachments=Attachments}} ->
          case proplists:get_value(FileName, Attachments) of
  