class FileUploadView(APIView):
    parser_classes = FileUploadParser,

def post(self, request, format='jpg'):
    up_file = request.FILES['file']
destination = open('/Users/Username/' + up_file.name, 'wb+')
for chunk in up_file.chunks():
    destination.write(chunk)
destination.close()
return Response(up_file.name, status.HTTP_201_CREATED)
Загрузка файла Django Rest Framework