gpt4 book ai didi

php - Joomla 3 媒体管理器创建所有新子文件夹并将文件上传到顶级图像目录

转载 作者:行者123 更新时间:2023-12-01 16:48:50 25 4
gpt4 key购买 nike

我正在构建 Joomla 网站,媒体管理器遇到一些问题。我无法在媒体管理器中创建子文件夹或将图像上传到子文件夹中。我可以导航到子文件夹并查看它们的文件,但如果我创建一个新文件夹或上传一个新文件,它最终会出现在/images 目录中。

我注意到链接中的 url 查询包含 &folder= ,但没有任何值。查看 php 文件,发现 $this->state->folder 即使在子文件夹中也会返回空字符串。

还有其他人遇到这个问题并知道解决方案吗?

编辑:最新版本的 Joomla (3.3)。还应该提到这个问题只发生在默认媒体管理器中。如果我使用编辑器内置的 JCK 管理器,就没有问题。

最佳答案

他们解决了问题:https://github.com/joomla/joomla-cms/pull/3575/files

您需要做的就是转到:administrator/components/com_media/views/media/tmpl/default.php 第 72 行,然后更改

72: <input type="text" id="folderpath" readonly="readonly" />

72: <input type="text" id="folderpath" readonly="readonly" class="update-folder" />

转到:media/media/js/mediamanager.js 第 45 行并更改

45: this.updatepaths.each(function(path){ path.value =folder; });
...
48: this.updatepaths.each(function(path){ path.value = ''; });

45: this.updatepaths.each(function(path, el){ el.value =folder; });
...
48: this.updatepaths.each(function(path, el){ el.value = ''; });

GL

关于php - Joomla 3 媒体管理器创建所有新子文件夹并将文件上传到顶级图像目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23412919/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com