mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
add docs
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user