From 22acd0ac677553b5ff404d95962b84d5f1da28b4 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Mon, 9 Sep 2024 14:01:25 +0800 Subject: [PATCH] fix minio error (#2321) ### What problem does this PR solve? ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- api/apps/file_app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/apps/file_app.py b/api/apps/file_app.py index 555a4658..8aec9b83 100644 --- a/api/apps/file_app.py +++ b/api/apps/file_app.py @@ -116,7 +116,7 @@ def upload(): "size": len(blob), } file = FileService.insert(file) - MINIO.put(last_folder.id, location, blob) + STORAGE_IMPL.put(last_folder.id, location, blob) file_res.append(file.to_json()) return get_json_result(data=file_res) except Exception as e: