Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Fm Elfinder未提供正确的路径_Php_Symfony_Elfinder - Fatal编程技术网

Php Fm Elfinder未提供正确的路径

Php Fm Elfinder未提供正确的路径,php,symfony,elfinder,Php,Symfony,Elfinder,我在我们的网页上使用elfinder作为文件系统。我们在yml文件中设置了FolderPath,在将位置从article_images更改为images/article_images后,我遇到了一些问题 单击输入字段时,将打开elFinder。然后我浏览一张照片,点击dobble,输入字段应该填充路径 这实际上应该是/images/article\u images/ 这很奇怪,因为yml中的位置必须正确,因为: elFinder将打开右侧文件夹 右键单击图片并按“链接”时,会在新选项卡中打开

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

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

这实际上应该是/images/article\u images/

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

  • elFinder将打开右侧文件夹

  • 右键单击图片并按“链接”时,会在新选项卡中打开该图片,并显示正确的url(带/images)

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

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%

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

您好,鲁本,什么值包含%article\u images%变量,以及文件相对于web根的物理位置?您好,鲁本,什么值包含%article\u images%变量,以及文件相对于web根的物理位置?