Commit dceb1c5f by 周田

mod

parent 89340c1d
......@@ -24,7 +24,7 @@ def upload(request):
print(protocol_name)
print(version)
print(file_obj.name)
with open(f'{file_obj.name}', 'wb+') as destination:
with open(f'./protocol_raw_files/{protocol_name}/{version}/{file_obj.name}', 'wb+') as destination:
for chunk in file_obj.chunks():
destination.write(chunk)
return Response(status=status.HTTP_200_OK)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment