Skip to content

Commit bf225f2

Browse files
committed
fix: file upload source (supermemoryai#579)
1 parent a88525f commit bf225f2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • apps/web/components/views/add-memory

apps/web/components/views/add-memory/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,9 @@ export function AddMemoryView({
420420
const formData = new FormData()
421421
formData.append("file", file)
422422
formData.append("containerTags", JSON.stringify([project]))
423+
formData.append("metadata", JSON.stringify({
424+
sm_source: "consumer",
425+
}))
423426

424427
const response = await fetch(
425428
`${process.env.NEXT_PUBLIC_BACKEND_URL}/v3/documents/file`,

0 commit comments

Comments
 (0)