Skip to content

Commit 7dde01e

Browse files
authored
fix(kb): force kb uploads to use serve route (#1547)
1 parent 86ed32e commit 7dde01e

File tree

1 file changed

+1
-2
lines changed
  • apps/sim/app/api/files/presigned

1 file changed

+1
-2
lines changed

apps/sim/app/api/files/presigned/route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,9 +265,8 @@ async function handleS3PresignedUrl(
265265
)
266266
}
267267

268-
// For chat images, knowledge base files, and profile pictures, use direct URLs since they need to be accessible by external services
269268
const finalPath =
270-
uploadType === 'chat' || uploadType === 'knowledge-base' || uploadType === 'profile-pictures'
269+
uploadType === 'chat' || uploadType === 'profile-pictures'
271270
? `https://${config.bucket}.s3.${config.region}.amazonaws.com/${uniqueKey}`
272271
: `/api/files/serve/s3/${encodeURIComponent(uniqueKey)}`
273272

0 commit comments

Comments
 (0)