mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-04-28 00:02:49 +08:00
[Windows8] upload uses the provided fileName or the actual fileName
This commit is contained in:
@@ -67,7 +67,7 @@ exec(win, fail, 'FileTransfer', 'upload',
|
||||
var blob = MSApp.createBlobFromRandomAccessStream(mimeType, stream);
|
||||
|
||||
var formData = new FormData();
|
||||
formData.append(fileKey, blob, storageFile.name);
|
||||
formData.append(fileKey, blob, fileName);
|
||||
// add params
|
||||
for(var key in params) {
|
||||
formData.append(key,params[key]);
|
||||
|
||||
Reference in New Issue
Block a user