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.
- package/package.json +1 -1
- package/quickblox.d.ts +44 -18
- package/quickblox.js +9961 -10360
- package/quickblox.min.js +1 -1
- package/src/modules/chat/qbMessage.js +3 -1
- package/src/modules/qbContent.js +9 -1
- package/src/qbConfig.js +2 -2
package/src/modules/qbContent.js
CHANGED
|
@@ -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
|
|
227
|
+
data,
|
|
228
|
+
fileToCustomObject: true,
|
|
221
229
|
};
|
|
222
230
|
|
|
223
231
|
this.service.ajax(uploadParams, function(err, xmlDoc) {
|