From 6b530529e33ac9922345ded81cbfe165812f8203 Mon Sep 17 00:00:00 2001 From: Yasien Mac Mini Date: Tue, 25 Nov 2025 15:20:58 +0200 Subject: [PATCH] minio storage fix pt11 --- backend/routers/fileStorage.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/backend/routers/fileStorage.py b/backend/routers/fileStorage.py index 835a94da..36e984ec 100644 --- a/backend/routers/fileStorage.py +++ b/backend/routers/fileStorage.py @@ -120,7 +120,11 @@ async def pull_File_from_user(app_id: str, folder: str, file_name: str, env: str buckets = client.list_buckets() print("Connected to MinIO successfully!") print("Available buckets:", [bucket.name for bucket in buckets]) - miniourl = client.presigned_get_object("mih", path,expires=timedelta(minutes=60)) + miniourl = client.presigned_get_object( + bucket_name="mih", + object_name=path, + expires=timedelta(minutes=60) + ) print("Generated presigned URL:", miniourl) # if(env == "Dev"): # miniourl.replace("minio", "localhost")