symfony - Sonata media bundle no image preview -
I have a problem in Sonata Media Bundle Images that I upload to the server (local) are not displayed (thumbnails Unavailable). I checked the path and it is all right that all my uploaded images have been moved to directory / web / upload / media .
Check the screenshot:
Sonata_media: # if you do not use the default namespace configuration # Class: # Media: Myvendor \ MediaBundle \ Entity \ Media # Gallery: MyVendor \ MediaBundle \ Entity \ Gallery # gallery_has_media: MyVendor \ MediaBundle \ Entity \ GalleryHasMedia Default_Connect: Default db_driver: doctrine_orm # or doctrine_mongodb, doctrine_phpcr Reference: Default: #Default Reference Mandatory Prada These are: - Sonata.media.provider.dailymotion - sonata.media.provider.youtube - sonata.media.provider.image - sonata.media.provider.file Format: Preview: {Width: 100, Quality: 100} Small: {Width: 100, quality: 70} big: {width: 500, quality: 70} cd n: server: path: upload / media filesystem: local: directory:% kernel.root_dir% / .. / web / uploads / media Made: wrong sonata_notification: backend: sonata Notification. Backend. Runtime sonata_notification: admin: enabled: false Sonata is using the media bundle in the admin bundle and it all works well, but this thumbnail is not provided only. I have read the Media Bondol Doctor Helper Section, but I do not understand.
In my article, under the control of the admin, I am adding the following:
Your link should be something like '/ upload / media / ... and' upload '/ media / ...' '
< P> In your config file,cdn: server: path: upload / media
in
cdn: server: path: / upload / media
Hope this helps to solve your problem.
Comments
Post a Comment