From 4f241de40a712b6fe6c5cc9f1b5f1f1d2e9dca5c Mon Sep 17 00:00:00 2001 From: yaso-meth Date: Mon, 9 Sep 2024 09:56:02 +0200 Subject: [PATCH] file upload fix --- backend/routers/fileStorage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/routers/fileStorage.py b/backend/routers/fileStorage.py index e1c17416..bd35e6de 100644 --- a/backend/routers/fileStorage.py +++ b/backend/routers/fileStorage.py @@ -108,7 +108,7 @@ async def upload_File_to_user(file: UploadFile = File(...), app_id: str= Form(.. uploudFile(app_id, folder, file.filename, extension[1], content) except Exception as error: raise HTTPException(status_code=404, detail="Failed to Uploud Record") - return {"message": "Successfully Delete File"} + return {"message": f"Successfully Uploaded {file.filename}"} # return { # "app_id": app_id, @@ -148,7 +148,7 @@ async def upload_perscription_to_user(requestItem: perscriptionList, session: Se return {"message": "Successfully Generated File"} def uploudFile(app_id, folder, fileName, extension, content): - client = Minio_Storage.minioConnection.minioConnect("dev") + client = Minio_Storage.minioConnection.minioConnect("Dev") found = client.bucket_exists("mih") if not found: client.make_bucket("mih")