コード例 #1
0
ファイル: dsym_files.py プロジェクト: binlee1990/sentry
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)
コード例 #2
0
ファイル: dsym_files.py プロジェクト: yogeshmangaj/sentry
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)