Skip to content

Commit

Permalink
Merge pull request #39 from tifabien/fix-image-preview
Browse files Browse the repository at this point in the history
Fix the image preview for the imageProvider
  • Loading branch information
Silas Joisten authored Sep 10, 2018
2 parents 71354db + 6c5833a commit 5020b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/MultiUploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()]),
]);
}
Expand Down

0 comments on commit 5020b47

Please sign in to comment.