Browse Source

Fix UploadAPI

pull/1310/head
Hironsan 3 years ago
parent
commit
2f7f880ed2
1 changed files with 2 additions and 2 deletions
  1. 4
      app/api/views/upload/view.py

4
app/api/views/upload/view.py

@ -27,8 +27,8 @@ class UploadAPI(APIView):
def post(self, request, *args, **kwargs): def post(self, request, *args, **kwargs):
project_id = self.kwargs['project_id'] project_id = self.kwargs['project_id']
upload_ids = request.data('upload_ids')
format = request.data('format')
upload_ids = request.data['uploadIds']
format = request.data['format']
tus = [TemporaryUpload.objects.get(upload_id=upload_id) for upload_id in upload_ids] tus = [TemporaryUpload.objects.get(upload_id=upload_id) for upload_id in upload_ids]
sus = [store_upload(tu.upload_id, destination_file_path=tu.upload_name) for tu in tus] sus = [store_upload(tu.upload_id, destination_file_path=tu.upload_name) for tu in tus]

Loading…
Cancel
Save