Return JsonResponse from media upload