mirror of
https://github.com/apache/cordova-plugin-file-transfer.git
synced 2026-04-28 00:02:49 +08:00
Merge documentation fix from 'andrewreedy/patch-1' (This closes #37)
This commit is contained in:
+2
-2
@@ -69,8 +69,6 @@ __Parameters__:
|
||||
|
||||
- __errorCallback__: A callback that executes if an error occurs retrieving the `Metadata`. Invoked with a `FileTransferError` object. _(Function)_
|
||||
|
||||
- __trustAllHosts__: Optional parameter, defaults to `false`. If set to `true`, it accepts all security certificates. This is useful since Android rejects self-signed security certificates. Not recommended for production use. Supported on Android and iOS. _(boolean)_
|
||||
|
||||
- __options__: Optional parameters _(Object)_. Valid keys:
|
||||
- __fileKey__: The name of the form element. Defaults to `file`. (DOMString)
|
||||
- __fileName__: The file name to use when saving the file on the server. Defaults to `image.jpg`. (DOMString)
|
||||
@@ -78,6 +76,8 @@ __Parameters__:
|
||||
- __params__: A set of optional key/value pairs to pass in the HTTP request. (Object)
|
||||
- __chunkedMode__: Whether to upload the data in chunked streaming mode. Defaults to `true`. (Boolean)
|
||||
- __headers__: A map of header name/header values. Use an array to specify more than one value. (Object)
|
||||
|
||||
- __trustAllHosts__: Optional parameter, defaults to `false`. If set to `true`, it accepts all security certificates. This is useful since Android rejects self-signed security certificates. Not recommended for production use. Supported on Android and iOS. _(boolean)_
|
||||
|
||||
### Example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user