Method Summary
Public Methods | ||
public |
clientLoad(pid: number, json: object) Load a file into memory with option to preview |
|
public |
filePreview(pid: number, json: object) Image preview |
|
public |
putFileToS3(pid: number, json: object) Upload fiel to S3 |
Inherited Summary
From class Queueable | ||
public |
queue: * |
|
public |
|
|
public |
finished(pid: *, mode: *) Call this method after you command has finished. |
|
public |
init(queue: *) init, override this for any promise based inits setting the self.ready=true after the promise |
|
public |
set(pid: *, value: *) |
|
public |
start(pid: *, command: *, json: *) Called from queue, starts running the actual command |
Public Methods
public filePreview(pid: number, json: object) source
Image preview
Params:
Name | Type | Attribute | Description |
pid | number | Process ID |
|
json | object | queue arguments |
|
json.targetId | string | Dom location that contains the files input |
|
json.previewId | string | Dom location to put preview |
|
json.dragTargetId | string | Dom location to target for the drop zone |
|
json.background | string | Use background rather than src |
public putFileToS3(pid: number, json: object) source
Upload fiel to S3
Params:
Name | Type | Attribute | Description |
pid | number | Process ID |
|
json | object | queue arguments |
|
json.targetId | string | Dom location that contains the files input |
|
json.file | boolean | use the memory file object set |
|
json.contentType | string | Content type of file |
|
json.headers | string | Additional headers to send |
|
json.url | string | url to upload to |