From 49d4bbe7756bc9a90c3110a1a543cc9a68d1f6a4 Mon Sep 17 00:00:00 2001 From: tugg Date: Wed, 5 Nov 2025 11:29:56 +0100 Subject: [PATCH] do not add local path to file as url --- app/backend/prepdocslib/listfilestrategy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/backend/prepdocslib/listfilestrategy.py b/app/backend/prepdocslib/listfilestrategy.py index 7302bc7ed8..b2f6783609 100644 --- a/app/backend/prepdocslib/listfilestrategy.py +++ b/app/backend/prepdocslib/listfilestrategy.py @@ -111,7 +111,7 @@ async def list(self) -> AsyncGenerator[File, None]: acls = {"oids": ["all"], "groups": ["all"]} if self.enable_global_documents else {} async for path in self.list_paths(): if not self.check_md5(path): - yield File(content=open(path, mode="rb"), acls=acls, url=path) + yield File(content=open(path, mode="rb"), acls=acls) def check_md5(self, path: str) -> bool: # if filename ends in .md5 skip