quickblox 2.19.2 → 2.19.3-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,7 +50,9 @@ MessageProxy.prototype = {
50
50
  this.service.ajax({
51
51
  url: Utils.getUrl(MESSAGES_API_URL),
52
52
  type: 'POST',
53
- data: params
53
+ contentType: 'application/json; charset=utf-8',
54
+ isNeedStringify: true,
55
+ data: params,
54
56
  }, callback);
55
57
  },
56
58
 
@@ -172,6 +172,7 @@ ContentProxy.prototype = {
172
172
  });
173
173
 
174
174
  data.file = file;
175
+ data.name = name;
175
176
  uploadParams.data = data;
176
177
 
177
178
  // Upload the file to Amazon S3
@@ -212,12 +213,19 @@ ContentProxy.prototype = {
212
213
  * @param {object} error - The error object.
213
214
  * @param {object} response - The empty object.
214
215
  */
216
+ var data = Object.assign({}, params.data);
217
+ var file = {
218
+ data: params.data.file,
219
+ name: params.data.name || params.data.file.name,
220
+ };
221
+ data.file = file;
215
222
  var uploadParams = {
216
223
  type: 'POST',
217
224
  dataType: 'text',
218
225
  contentType: false,
219
226
  url: params.url,
220
- data: params.data
227
+ data,
228
+ fileToCustomObject: true,
221
229
  };
222
230
 
223
231
  this.service.ajax(uploadParams, function(err, xmlDoc) {
package/src/qbConfig.js CHANGED
@@ -12,8 +12,8 @@
12
12
  */
13
13
 
14
14
  var config = {
15
- version: '2.19.2',
16
- buildNumber: '1164',
15
+ version: '2.19.3-beta.1',
16
+ buildNumber: '1165',
17
17
  creds: {
18
18
  'appId': 0,
19
19
  'authKey': '',