From 6c5833a68c8cb04ff45c85eb2a63ee877da269d8 Mon Sep 17 00:00:00 2001 From: Fabien Lucas Date: Thu, 6 Sep 2018 14:44:25 +0200 Subject: [PATCH] Fix the image provider preview --- src/Controller/MultiUploadController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/MultiUploadController.php b/src/Controller/MultiUploadController.php index d058d8e..00aa81a 100644 --- a/src/Controller/MultiUploadController.php +++ b/src/Controller/MultiUploadController.php @@ -73,7 +73,7 @@ public function multiUploadAction(Request $request) return new JsonResponse([ 'status' => 'ok', - 'path' => $provider->getReferenceImage($media), + 'path' => $provider->generatePublicUrl($media, MediaProviderInterface::FORMAT_REFERENCE), 'edit' => $this->admin->generateUrl('edit', ['id' => $media->getId()]), ]); }