Skip to content
Snippets Groups Projects
Unverified Commit 9f866aa9 authored by Thuc Pham's avatar Thuc Pham Committed by GitHub
Browse files

fix: use uploaded filename to build file url (#404)

parent b8f78612
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,11 @@ export async function uploadDocument(
}
} else {
// run the pipeline for other vector store indexes
const documents: Document[] = await parseFile(fileBuffer, name, mimeType);
const documents: Document[] = await parseFile(
fileBuffer,
fileMetadata.name,
mimeType,
);
documentIds = await runPipeline(index, documents);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment