def upload_from_request(request, project): if 'file' not in request.FILES: return Response({'detail': 'Missing uploaded file'}, status=400) fileobj = request.FILES['file'] files = create_files_from_dsym_zip(fileobj, project=project) return Response(serialize(files, request.user), status=201)