Skip to content

Commit 630e2dc

Browse files
authored
Merge pull request #180 from gaiin-platform/feature/zip
Adding zip logic to file handler with tag support
2 parents 1d4cc78 + 85e2c66 commit 630e2dc

File tree

2 files changed

+205
-38
lines changed

2 files changed

+205
-38
lines changed

components/Chat/AttachFile.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ export const handleFile = async (file:any,
4545
// extractDocumentsLocally:boolean,
4646
groupId:string | undefined,
4747
ragEnabled:boolean,
48-
props:any = {}
48+
props:any = {},
49+
tags:string[] = []
4950
) => {
5051

5152
try {
@@ -104,7 +105,7 @@ export const handleFile = async (file:any,
104105
else if (onUploadProgress && progress >= 95) {
105106
onUploadProgress(document, 95);
106107
}
107-
}, ragEnabled);
108+
}, ragEnabled, tags);
108109
docKey = key;
109110
if (onSetAbortController) onSetAbortController(document, () => {
110111
abortController?.abort()

0 commit comments

Comments
 (0)