anchor.diff:          atts = NewAtt ++ [A || A <- Atts, A#att.name /= FileName]
       },
       {ok, UpdatedRev} = fabric:update_doc(Db, DocEdited, [{user_ctx,Ctx}]),
  -    DbName = couch_db:name(Db),
  +    #db{name=DbName} = Db,
   
       {Status, Headers} = case Method of
           'DELETE' ->
               {200, []};
           _ ->
  -            {201, [{"Location", absolute_uri(Req, "/" ++
  -                binary_to_list(DbName) ++ "/" ++
  -                binary_to_list(DocId) ++ "/" ++
  -                binary_to_list(FileName)
  -            )}]}
  +            {201, [{"Location", absolute_uri(Req, [$/, DbName, $/, DocId, $/,
  +                FileName])}]}
           end,
       send_json(Req,Status, Headers, {[
           {ok, true},
  
positive.code:                         list_to_binary(CType)
                      end,
                  data = fabric:att_receiver(Req, chttpd:body_length(Req)),
                  att_len = case chttpd:header_value(Req,"Content-Length") of
                      undefined ->
                          undefined;
                      Length ->
  
negative.code: 
  db_req(#httpd{method='POST',path_parts=[_,<<"_bulk_docs">>], user_ctx=Ctx}=Req, Db) ->
      couch_stats_collector:increment({httpd, bulk_requests}),
      couch_httpd:validate_ctype(Req, "application/json"),
      {JsonProps} = chttpd:json_body_obj(Req),
      DocsArray = couch_util:get_value(<<"docs">>, JsonProps),
      case chttpd:header_value(Req, "X-Couch-Full-Commit") of
  