Feat: Files uploaded via the dialog box can be uploaded without binding to a dataset. #9590 (#11630)

### What problem does this PR solve?

Feat: Files uploaded via the dialog box can be uploaded without binding
to a dataset. #9590

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-12-01 16:29:02 +08:00
committed by GitHub
parent 221947acc4
commit 1120575021
11 changed files with 60 additions and 466 deletions

View File

@ -96,7 +96,7 @@ export interface Message {
id?: string;
audio_binary?: string;
data?: any;
files?: File[];
files?: (File | UploadResponseDataType)[];
chatBoxId?: string;
attachment?: IAttachment;
}
@ -192,3 +192,14 @@ export interface IMessage extends Message {
export interface IClientConversation extends IConversation {
message: IMessage[];
}
export interface UploadResponseDataType {
created_at: number;
created_by: string;
extension: string;
id: string;
mime_type: string;
name: string;
preview_url: null;
size: number;
}