From 59dc168f8c523568f493b55775566563ccab4e3c Mon Sep 17 00:00:00 2001 From: Akihiko Kuroda Date: Thu, 19 Sep 2024 10:33:23 -0400 Subject: [PATCH] fix big file upload issue --- gateway/api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/api/views.py b/gateway/api/views.py index f7655a6c4..89a4b44b3 100644 --- a/gateway/api/views.py +++ b/gateway/api/views.py @@ -813,7 +813,7 @@ def upload(self, request): # pylint: disable=invalid-name with open(file_path, "wb+") as destination: for chunk in upload_file.chunks(): destination.write(chunk) - return Response({"message": file_path}) + return Response({"message": file_path}) return Response("server error", status=status.HTTP_500_INTERNAL_SERVER_ERROR)