Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.4.0
-
None
Description
The problem seems to be in FileTransferProxy, which simply ignores the options array.
Here's a partial correction (there are additional options in the array):
Old Code:
var blob = MSApp.createBlobFromRandomAccessStream(storageFile.contentType, stream);
var formData = new FormData();
formData.append("source\";filename=\"" + storageFile.name + "\"", blob);
New Code:
var fileKey = options[2];
var fileName = options[3];
var params = options[5];
var blob = MSApp.createBlobFromRandomAccessStream(storageFile.contentType, stream);
var formData = new FormData();
formData.append(fileKey, blob, fileName);
for (var key in params)
formData.append(key, params[key]);