Skip to content

Commit

Permalink
refactor(flat-server-api): upload start payload changed (#2140)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyrious authored Apr 12, 2024
1 parent 1f8c462 commit 3579c51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/flat-server-api/src/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export interface UploadStartPayload {
fileName: string;
fileSize: number;
targetDirectoryPath: string;
convertType: FileResourceType;
}

export interface UploadStartResult {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
UploadStartResult,
RequestErrorCode,
isServerRequestError,
FileResourceType,
} from "@netless/flat-server-api";
import { errorTips } from "flat-components";
import { globalStore } from "../../global-store";
Expand Down Expand Up @@ -67,6 +68,7 @@ export class UploadTask {
fileName,
fileSize,
targetDirectoryPath: this.targetDirectoryPath,
convertType: FileResourceType.WhiteboardProjector,
});
} catch (e) {
// max concurrent upload count limit
Expand All @@ -79,6 +81,7 @@ export class UploadTask {
fileName,
fileSize,
targetDirectoryPath: this.targetDirectoryPath,
convertType: FileResourceType.WhiteboardProjector,
});
} else {
throw e;
Expand Down

0 comments on commit 3579c51

Please sign in to comment.