From 4295cefeb11cf1ab1b3f84eac94612f43f62f07f Mon Sep 17 00:00:00 2001 From: Hiroshi Fujita Date: Tue, 7 Jan 2025 23:33:25 +0900 Subject: [PATCH] fix: allow fallback to remote_url when url is not provided (#12455) --- api/factories/file_factory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/factories/file_factory.py b/api/factories/file_factory.py index 1e1e3fb796..c6dc748e93 100644 --- a/api/factories/file_factory.py +++ b/api/factories/file_factory.py @@ -158,7 +158,7 @@ def _build_from_remote_url( tenant_id: str, transfer_method: FileTransferMethod, ) -> File: - url = mapping.get("url") + url = mapping.get("url") or mapping.get("remote_url") if not url: raise ValueError("Invalid file url")