fix big file upload issue (#1497)
This commit is contained in:
parent
23c44b6dc8
commit
5978412853
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue