       dataType: 'json'
       type: 'POST'
       url: url
-      data: pako.deflate(JSON.stringify sendContent)
+      data: pako.deflate sendContent
       contentType: mimeType
       processData: false
       beforeSend: (xhr) ->

        {withCredentials}
      success: (data) ->
        content = cloudContentFactory.createEnvelopedCloudContent data
        if @options.patch then @previouslySavedContent = content.clone()
        metadata.name ?= data.docName
        callback null, content
      error: ->

      xhrFields:
        withCredentials: true
      success: (data) ->
        @previouslySavedContent = if @options.patch then cloudContent.clone() else null
        if data.id then metadata.providerData.id = data.id

        callback null, data
