mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
fix: file upload source (#579)
This commit is contained in:
parent
a88525feb0
commit
bf225f2557
1 changed files with 3 additions and 0 deletions
|
|
@ -420,6 +420,9 @@ export function AddMemoryView({
|
|||
const formData = new FormData()
|
||||
formData.append("file", file)
|
||||
formData.append("containerTags", JSON.stringify([project]))
|
||||
formData.append("metadata", JSON.stringify({
|
||||
sm_source: "consumer",
|
||||
}))
|
||||
|
||||
const response = await fetch(
|
||||
`${process.env.NEXT_PUBLIC_BACKEND_URL}/v3/documents/file`,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue