From 97860669ec0ec4aba084c1467e2f6afa4db0f1b7 Mon Sep 17 00:00:00 2001 From: kqjy Date: Sun, 21 Dec 2025 14:22:00 +0800 Subject: [PATCH] Fix presigned URL not generating for nested objects --- app/ui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ui.py b/app/ui.py index 695f5e2..96f807a 100644 --- a/app/ui.py +++ b/app/ui.py @@ -796,7 +796,7 @@ def object_presign(bucket_name: str, object_key: str): api_base = current_app.config.get("API_BASE_URL") or "http://127.0.0.1:5000" api_base = api_base.rstrip("/") - encoded_key = quote(object_key, safe="") + encoded_key = quote(object_key, safe="/") url = f"{api_base}/presign/{bucket_name}/{encoded_key}" # Use API base URL for forwarded headers so presigned URLs point to API, not UI