Method
constructor
(tempId: string, file: File, url: string, password: string, options: UploadOptions)
Source from the content-addressed store, hash-verified
| 38 | }; |
| 39 | |
| 40 | constructor(tempId: string, file: File, url: string, password: string, options: UploadOptions) { |
| 41 | this.file = file; |
| 42 | this.url = url; |
| 43 | this.id = tempId; |
| 44 | this.callbacks = { |
| 45 | onStart: new Set(), |
| 46 | onEnd: new Set() |
| 47 | }; |
| 48 | this.init(tempId, url, password, options); // async |
| 49 | } |
| 50 | |
| 51 | async init(tempId: string, url: string, password: string, options: UploadOptions) { |
| 52 | const { state: uploadCfg, execute: uploadFile } = uploadFileApi(); |
Callers
nothing calls this directly
Tested by
no test coverage detected