Skip to content

Commit

Permalink
fix big file upload issue
Browse files Browse the repository at this point in the history
  • Loading branch information
akihikokuroda committed Sep 19, 2024
1 parent 23c44b6 commit 59dc168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gateway/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 59dc168

Please sign in to comment.