Classes
Methods
(static) dispose()
Disposes the UploadToCaptureServer
service
(static) getUploadCallback() → {function}
Upload handler factory
- Tutorials:
-
- Tutorial: {4-automatic-upload}
Returns:
- Type
- function
(static) initialize(params)
Initializes upload service
Parameters:
Name | Type | Description |
---|---|---|
params |
UploadParams | initialization parameters |
(static) uploadToServer(data, options)
Starts upload operation.
Parameters:
Name | Type | Description |
---|---|---|
data |
string | base64 encoded data to upload. |
options |
UploadOptions | the upload options |
Type Definitions
UploadOptions
Additional data for upload HTTP requests
Properties:
Name | Type | Default | Description |
---|---|---|---|
[formData] |
Object | null | arbitrary plain object containing additional data that should be passed to server. See Upload to Capture Handler |
[extraParts] |
Array.<string> | a list of additional parts to be inserted in the multipart body of each upload. See Upload to Capture Handler |
Events
onUploadCompleted :onUploadCompletedCallback
Fired when scanned document upload completed.
onUploadError :onUploadErrorCallback
Fired when scanned document upload completed with error.
onUploadStarted :onUploadStartedCallback
Fired when scanned document upload started.