// Fallback to upload a revision if uploadMultipartRevision failed due to the server's rejecting // multipart format. private void UploadJsonRevision(RevisionInternal rev) { // Get the revision's properties: if (!db.InlineFollowingAttachmentsIn(rev)) { error = new CouchbaseLiteException(Status.BadAttachment); RevisionFailed(); return; } Log.V(Log.TagSync, "%s | %s: uploadJsonRevision() calling asyncTaskStarted()", this , Sharpen.Thread.CurrentThread()); AsyncTaskStarted(); string path = string.Format("/%s?new_edits=false", URIUtils.Encode(rev.GetDocId() )); SendAsyncRequest("PUT", path, rev.GetProperties(), new _RemoteRequestCompletionBlock_594 (this, rev)); }