This commit is contained in:
deepak1556 2016-08-23 06:29:44 +05:30
parent 0fb2339e3d
commit a23e7ecf8f
2 changed files with 10 additions and 0 deletions

View file

@ -93,6 +93,7 @@ The `uploadData` is an array of `data` objects:
* `data` Object * `data` Object
* `bytes` Buffer - Content being sent. * `bytes` Buffer - Content being sent.
* `file` String - Path of file being uploaded. * `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 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 path or an object that has a `path` property, e.g. `callback(filePath)` or

View file

@ -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. 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 ### Instance Properties
The following properties are available on instances of `Session`: The following properties are available on instances of `Session`:
@ -513,6 +521,7 @@ The `uploadData` is an array of `data` objects:
* `data` Object * `data` Object
* `bytes` Buffer - Content being sent. * `bytes` Buffer - Content being sent.
* `file` String - Path of file being uploaded. * `file` String - Path of file being uploaded.
* `blobUUID` String - UUID of blob data.
The `callback` has to be called with an `response` object: The `callback` has to be called with an `response` object: