Skip to content

Commit 42ec45f

Browse files
committed
fix(uploads): include ?type=knowledge-base on kb presigned fallback
1 parent f4e1f28 commit 42ec45f

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
@@ -257,7 +257,7 @@ export function useKnowledgeUpload(options: UseKnowledgeUploadOptions = {}) {
257257
file,
258258
workspaceId: options.workspaceId,
259259
context: 'knowledge-base',
260-
presignedEndpoint: '/api/files/presigned',
260+
presignedEndpoint: '/api/files/presigned?type=knowledge-base',
261261
presignedOverride: presigned,
262262
onProgress,
263263
})

0 commit comments

Comments
 (0)