diff --git a/packages/flat-server-api/src/storage.ts b/packages/flat-server-api/src/storage.ts index fbe4b973ccc..7984c9df00c 100644 --- a/packages/flat-server-api/src/storage.ts +++ b/packages/flat-server-api/src/storage.ts @@ -81,6 +81,7 @@ export interface UploadStartPayload { fileName: string; fileSize: number; targetDirectoryPath: string; + convertType: FileResourceType; } export interface UploadStartResult { diff --git a/packages/flat-stores/src/utils/upload-task-manager/upload-task.ts b/packages/flat-stores/src/utils/upload-task-manager/upload-task.ts index de4906bcecc..88163752509 100644 --- a/packages/flat-stores/src/utils/upload-task-manager/upload-task.ts +++ b/packages/flat-stores/src/utils/upload-task-manager/upload-task.ts @@ -7,6 +7,7 @@ import { UploadStartResult, RequestErrorCode, isServerRequestError, + FileResourceType, } from "@netless/flat-server-api"; import { errorTips } from "flat-components"; import { globalStore } from "../../global-store"; @@ -67,6 +68,7 @@ export class UploadTask { fileName, fileSize, targetDirectoryPath: this.targetDirectoryPath, + convertType: FileResourceType.WhiteboardProjector, }); } catch (e) { // max concurrent upload count limit @@ -79,6 +81,7 @@ export class UploadTask { fileName, fileSize, targetDirectoryPath: this.targetDirectoryPath, + convertType: FileResourceType.WhiteboardProjector, }); } else { throw e;