fix cordova file-transfer plugin - upload method

same as in issue #5435 for download method
This commit is contained in:
didlich
2016-03-29 19:12:20 +02:00
parent ee9c524295
commit 3ff4c66db0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ file.upload('cdvfile://localhost/persistent/path/to/downloads/',
console.error('Failed with exception ' + err.exception);
}
},
{ headers: null, httpMethod: "PUT" },
{ headers: {"X-Email": "user@mail.com", 'X-Token': "asdf3w234"}, httpMethod: "PUT" },
true);
file.abort();
+1 -1
View File
@@ -93,7 +93,7 @@ interface FileUploadOptions {
/** Whether to upload the data in chunked streaming mode. Defaults to true. */
chunkedMode?: boolean;
/** A map of header name/header values. Use an array to specify more than one value. */
headers?: Object[];
headers?: Object;
}
/** Optional parameters for download method. */