Fm Elfinder没有给出正确的路径

时间:2015-11-11 09:40:32

标签: php symfony elfinder

我在网页上使用elfinder作为文件系统。我们在yml文件中设置了文件夹路径,在将文章从article_images更改为images / article_images后,我遇到了一些问题。

单击输入字段时,elFinder将打开。然后我浏览一张照片,点击一下,输入字段应填充路径。

enter image description here

这应该是/ images / articcle_images /.....

这很奇怪,因为yml中的位置必须正确,因为:

  • elFinder打开右侧文件夹

  • 右键单击图片并按链接时,它会在新标签页中打开图片并显示正确的网址(带/图像)

经过大量的搜索,我相信这一定是一个配置问题。这是我的配置:

article_form:
                locale: %locale% # defaults to current request locale
                editor: form # other choices are tinymce or simple, and form
                fullscreen: true # defaults true, applies to simple and ckeditor editors
                include_assets: true # disable if you want to handle loading of the javascript and css assets yourself
                connector:
                    debug: false # defaults to false
                    roots:       # at least one root must be defined
                        uploads:
                            driver: LocalFileSystem
                            path: %article_images%
                            upload_allow: ['image/png', 'image/jpg', 'image/jpeg']
                            upload_deny: ['all']
                            upload_max_size: 2M
                            url: %article_images%

我的配置中是否缺少某些内容?

0 个答案:

没有答案