add docs
This commit is contained in:
parent
0fb2339e3d
commit
a23e7ecf8f
2 changed files with 10 additions and 0 deletions
|
@ -93,6 +93,7 @@ The `uploadData` is an array of `data` objects:
|
|||
* `data` Object
|
||||
* `bytes` Buffer - Content being sent.
|
||||
* `file` String - Path of file being uploaded.
|
||||
* `blobUUId` String - UUID of blob data.
|
||||
|
||||
To handle the `request`, the `callback` should be called with either the file's
|
||||
path or an object that has a `path` property, e.g. `callback(filePath)` or
|
||||
|
|
|
@ -326,6 +326,14 @@ This doesn't affect existing `WebContents`, and each `WebContents` can use
|
|||
|
||||
Returns a `String` representing the user agent for this session.
|
||||
|
||||
#### `ses.getBlobDataForUUID(uuid, callback)`
|
||||
|
||||
* `uuid` String
|
||||
* `callback` Function
|
||||
* `result` Buffer - Blob data.
|
||||
|
||||
Returns the blob data associated with `uuid`.
|
||||
|
||||
### Instance Properties
|
||||
|
||||
The following properties are available on instances of `Session`:
|
||||
|
@ -513,6 +521,7 @@ The `uploadData` is an array of `data` objects:
|
|||
* `data` Object
|
||||
* `bytes` Buffer - Content being sent.
|
||||
* `file` String - Path of file being uploaded.
|
||||
* `blobUUID` String - UUID of blob data.
|
||||
|
||||
The `callback` has to be called with an `response` object:
|
||||
|
||||
|
|
Loading…
Reference in a new issue