MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / constructor

Method constructor

frontend/src/services/uploadService.ts:40–49  ·  view source on GitHub ↗
(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

Calls 1

initMethod · 0.95

Tested by

no test coverage detected