fix big file upload issue (#1497)

This commit is contained in:
Akihiko (Aki) Kuroda 2024-09-19 10:59:16 -04:00 committed by GitHub
parent 23c44b6dc8
commit 5978412853
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@ class FilesViewSet(viewsets.ViewSet):
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)