Skip to content

Commit 08bdd26

Browse files
committed
fix(uploads): include 50MiB boundary in batch presigned fetch
1 parent 1301394 commit 08bdd26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/sim/app/workspace/[workspaceId]/knowledge/hooks/use-knowledge-upload.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ const fetchBatchPresignedData = async (
110110
const result: (PresignedUploadInfo | undefined)[] = new Array(files.length).fill(undefined)
111111
const smallFileIndices: number[] = []
112112
for (let i = 0; i < files.length; i++) {
113-
if (files[i].size < LARGE_FILE_THRESHOLD) smallFileIndices.push(i)
113+
if (files[i].size <= LARGE_FILE_THRESHOLD) smallFileIndices.push(i)
114114
}
115115
if (smallFileIndices.length === 0) return result
116116

0 commit comments

Comments
 (0)