mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #8762 from didlich/master
fix cordova file-transfer plugin - upload method
This commit is contained in:
@@ -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();
|
||||
|
||||
Vendored
+1
-1
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user