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: db_req(#httpd{path_parts=[_,<<"_admins">>]}=Req, _Db) ->
      send_method_not_allowed(Req, "PUT,GET");
  
  db_req(#httpd{path_parts=[DbName,<<"_design">>,Name|Rest]}=Req,
          Db) ->
      % Special case to enable using an unencoded in the URL of design docs, as
      % slashes in document IDs must otherwise be URL encoded
  